home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / VideoToolbox 4.95.sit / VideoToolbox / VideoToolboxSources / Identify.c < prev    next >
MacBinary  |  1995-03-26  |  12.4 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Mar 26 14:44:51 1995, modified Sun Mar 26 14:44:51 1995, creator 'MMCC', type ASCII, 11749 bytes "Identify.c" , at 0x2e65 734 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 49 64 65 6e 74 69 | 66 79 2e 63 00 00 00 00 |..Identi|fy.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 2d e5 00 | 00 02 de ab 9b 74 b3 ab |.....-..|.....t..|
|00000060| 9b 74 b3 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.t......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 59 b4 00 00 |........|....Y...|
|00000080| 2f 2a 20 49 64 65 6e 74 | 69 66 79 2e 63 0d 45 61 |/* Ident|ify.c.Ea|
|00000090| 63 68 20 72 6f 75 74 69 | 6e 65 20 72 65 74 75 72 |ch routi|ne retur|
|000000a0| 6e 73 20 61 6e 20 69 6e | 66 6f 72 6d 61 74 69 76 |ns an in|formativ|
|000000b0| 65 20 43 20 73 74 72 69 | 6e 67 2e 20 48 65 72 65 |e C stri|ng. Here|
|000000c0| 20 61 72 65 20 73 61 6d | 70 6c 65 73 2e 20 28 49 | are sam|ples. (I|
|000000d0| 20 73 75 67 67 65 73 74 | 20 79 6f 75 0d 75 73 65 | suggest| you.use|
|000000e0| 20 42 72 65 61 6b 4c 69 | 6e 65 73 28 29 20 74 6f | BreakLi|nes() to|
|000000f0| 20 70 72 69 6e 74 66 20 | 74 68 65 20 6c 6f 6e 67 | printf |the long|
|00000100| 65 72 20 6f 6e 65 73 2e | 29 0d 0d 49 64 65 6e 74 |er ones.|)..Ident|
|00000110| 69 66 79 43 6f 6d 70 69 | 6c 65 72 3a 0d 22 54 48 |ifyCompi|ler:."TH|
|00000120| 49 4e 4b 20 43 20 36 20 | 63 6f 6d 70 69 6c 65 64 |INK C 6 |compiled|
|00000130| 20 74 6f 20 67 65 6e 65 | 72 61 74 65 20 36 38 30 | to gene|rate 680|
|00000140| 32 30 20 61 6e 64 20 36 | 38 38 38 31 20 69 6e 73 |20 and 6|8881 ins|
|00000150| 74 72 75 63 74 69 6f 6e | 73 2c 20 0d 61 6e 64 20 |truction|s, .and |
|00000160| 75 73 65 20 31 32 2d 62 | 79 74 65 20 75 6e 69 76 |use 12-b|yte univ|
|00000170| 65 72 73 61 6c 2d 66 6f | 72 6d 61 74 20 64 6f 75 |ersal-fo|rmat dou|
|00000180| 62 6c 65 73 2e 22 0d 0d | 49 64 65 6e 74 69 66 79 |bles."..|Identify|
|00000190| 4f 77 6e 65 72 3a 0d 22 | 44 65 6e 69 73 20 50 65 |Owner:."|Denis Pe|
|000001a0| 6c 6c 69 22 0d 0d 49 64 | 65 6e 74 69 66 79 4d 6f |lli"..Id|entifyMo|
|000001b0| 64 65 6c 3a 0d 22 50 6f | 77 65 72 42 6f 6f 6b 20 |del:."Po|werBook |
|000001c0| 31 37 30 22 0d 0d 49 64 | 65 6e 74 69 66 79 4d 61 |170"..Id|entifyMa|
|000001d0| 63 68 69 6e 65 3a 0d 22 | 44 65 6e 69 73 20 50 65 |chine:."|Denis Pe|
|000001e0| 6c 6c 69 d5 73 20 50 6f | 77 65 72 42 6f 6f 6b 20 |lli.s Po|werBook |
|000001f0| 31 37 30 20 77 69 74 68 | 20 36 38 30 33 30 20 61 |170 with| 68030 a|
|00000200| 6e 64 20 36 38 38 38 32 | 20 72 75 6e 6e 69 6e 67 |nd 68882| running|
|00000210| 20 53 79 73 74 65 6d 20 | 37 2e 31 30 2c 20 52 4f | System |7.10, RO|
|00000220| 4d 20 31 30 32 34 4b 0d | 76 65 72 73 69 6f 6e 20 |M 1024K.|version |
|00000230| 31 32 34 2b 36 2a 32 35 | 36 2e 20 43 61 63 68 69 |124+6*25|6. Cachi|
|00000240| 6e 67 20 64 61 74 61 20 | 26 20 69 6e 73 74 72 75 |ng data |& instru|
|00000250| 63 74 69 6f 6e 73 2e 22 | 0d 0d 49 64 65 6e 74 69 |ctions."|..Identi|
|00000260| 66 79 56 69 64 65 6f 28 | 64 65 76 69 63 65 29 3a |fyVideo(|device):|
|00000270| 0d 22 50 6f 77 65 72 42 | 6f 6f 6b 20 31 37 30 20 |."PowerB|ook 170 |
|00000280| d2 4d 61 63 69 6e 74 6f | 73 68 20 44 20 42 75 69 |.Macinto|sh D Bui|
|00000290| 6c 74 2d 49 6e 20 56 69 | 64 65 6f d3 20 28 2e 44 |lt-In Vi|deo. (.D|
|000002a0| 69 73 70 6c 61 79 5f 56 | 69 64 65 6f 5f 41 70 70 |isplay_V|ideo_App|
|000002b0| 6c 65 5f 54 49 4d 29 20 | 69 6e 20 73 6c 6f 74 20 |le_TIM) |in slot |
|000002c0| 30 22 0d 0d 54 68 65 20 | 63 6f 6d 70 75 74 65 72 |0"..The |computer|
|000002d0| 20 6d 6f 64 65 6c 20 61 | 70 70 65 61 72 73 20 6f | model a|ppears o|
|000002e0| 6e 6c 79 20 69 66 20 74 | 68 65 20 73 6c 6f 74 3d |nly if t|he slot=|
|000002f0| 3d 30 2c 20 77 68 69 63 | 68 20 69 6e 64 69 63 61 |=0, whic|h indica|
|00000300| 74 65 73 20 62 75 69 6c | 74 2d 69 6e 20 76 69 64 |tes buil|t-in vid|
|00000310| 65 6f 2e 20 54 68 65 0d | 63 75 72 6c 79 20 71 75 |eo. The.|curly qu|
|00000320| 6f 74 65 73 20 65 6d 62 | 72 61 63 65 20 74 68 65 |otes emb|race the|
|00000330| 20 63 61 72 64 20 6e 61 | 6d 65 2c 20 61 6e 64 20 | card na|me, and |
|00000340| 74 68 65 20 70 61 72 65 | 6e 74 68 65 73 65 73 20 |the pare|ntheses |
|00000350| 65 6d 62 72 61 63 65 20 | 74 68 65 20 64 72 69 76 |embrace |the driv|
|00000360| 65 72 20 6e 61 6d 65 2e | 0d 54 68 65 20 64 72 69 |er name.|.The dri|
|00000370| 76 65 72 27 73 20 76 65 | 72 73 69 6f 6e 20 6e 75 |ver's ve|rsion nu|
|00000380| 6d 62 65 72 20 61 70 70 | 65 61 72 73 20 6f 6e 6c |mber app|ears onl|
|00000390| 79 20 69 66 20 69 74 27 | 73 20 6e 6f 6e 2d 7a 65 |y if it'|s non-ze|
|000003a0| 72 6f 2e 0d 0d 48 49 53 | 54 4f 52 59 3a 0d 31 2f |ro...HIS|TORY:.1/|
|000003b0| 32 39 2f 39 32 09 64 67 | 70 20 77 72 6f 74 65 20 |29/92.dg|p wrote |
|000003c0| 49 64 65 6e 74 69 66 79 | 43 6f 6d 70 69 6c 65 72 |Identify|Compiler|
|000003d0| 2e 0d 32 2f 32 35 2f 39 | 32 09 64 67 70 09 77 72 |..2/25/9|2.dgp.wr|
|000003e0| 6f 74 65 20 49 64 65 6e | 74 69 66 79 4d 61 63 68 |ote Iden|tifyMach|
|000003f0| 69 6e 65 2e 0d 38 2f 32 | 36 2f 39 32 09 64 67 70 |ine..8/2|6/92.dgp|
|00000400| 20 67 65 74 20 6f 77 6e | 65 72 20 61 6e 64 20 6d | get own|er and m|
|00000410| 6f 64 65 6c 20 6e 61 6d | 65 20 66 72 6f 6d 20 74 |odel nam|e from t|
|00000420| 68 65 20 53 79 73 74 65 | 6d 20 66 69 6c 65 0d 32 |he Syste|m file.2|
|00000430| 2f 32 30 2f 39 33 09 64 | 67 70 09 61 64 64 65 64 |/20/93.d|gp.added|
|00000440| 20 52 4f 4d 20 76 65 72 | 73 69 6f 6e 0d 32 2f 32 | ROM ver|sion.2/2|
|00000450| 37 2f 39 33 09 64 67 70 | 20 6d 65 72 67 65 64 20 |7/93.dgp| merged |
|00000460| 49 64 65 6e 74 69 66 79 | 43 6f 6d 70 69 6c 65 72 |Identify|Compiler|
|00000470| 2e 63 20 61 6e 64 20 49 | 64 65 6e 74 69 66 79 4d |.c and I|dentifyM|
|00000480| 61 63 68 69 6e 65 2e 63 | 20 69 6e 74 6f 20 74 68 |achine.c| into th|
|00000490| 65 20 6e 65 77 20 49 64 | 65 6e 74 69 66 79 2e 63 |e new Id|entify.c|
|000004a0| 2c 0d 09 09 09 61 6e 64 | 20 61 64 64 65 64 20 49 |,....and| added I|
|000004b0| 64 65 6e 74 69 66 79 56 | 69 64 65 6f 2e 0d 34 2f |dentifyV|ideo..4/|
|000004c0| 32 35 2f 39 33 09 64 67 | 70 09 49 64 65 6e 74 69 |25/93.dg|p.Identi|
|000004d0| 66 79 4d 61 63 68 69 6e | 65 20 72 65 70 6f 72 74 |fyMachin|e report|
|000004e0| 73 20 32 34 2f 33 32 2d | 62 69 74 20 61 64 64 72 |s 24/32-|bit addr|
|000004f0| 65 73 73 69 6e 67 2e 0d | 31 32 2f 31 34 2f 39 33 |essing..|12/14/93|
|00000500| 20 64 67 70 20 49 66 20 | 54 48 49 4e 4b 20 43 20 | dgp If |THINK C |
|00000510| 63 6f 6d 70 69 6c 65 72 | 20 76 65 72 73 69 6f 6e |compiler| version|
|00000520| 20 69 73 20 22 35 22 20 | 49 20 72 65 70 6f 72 74 | is "5" |I report|
|00000530| 20 22 35 20 6f 72 20 36 | 2e 30 22 20 73 69 6e 63 | "5 or 6|.0" sinc|
|00000540| 65 20 53 79 6d 61 6e 74 | 65 63 0d 09 09 09 66 6f |e Symant|ec....fo|
|00000550| 72 67 6f 74 20 74 6f 20 | 69 6e 63 72 65 6d 65 6e |rgot to |incremen|
|00000560| 74 20 74 68 65 20 76 65 | 72 73 69 6f 6e 20 6e 75 |t the ve|rsion nu|
|00000570| 6d 62 65 72 20 77 68 65 | 6e 20 74 68 65 79 20 72 |mber whe|n they r|
|00000580| 65 6c 65 61 73 65 64 20 | 36 2e 30 2e 20 54 68 65 |eleased |6.0. The|
|00000590| 79 0d 09 09 09 66 69 78 | 65 64 20 74 68 69 73 20 |y....fix|ed this |
|000005a0| 69 6e 20 76 65 72 73 69 | 6f 6e 20 36 2e 30 31 2e |in versi|on 6.01.|
|000005b0| 0d 33 2f 32 2f 39 34 09 | 64 67 70 09 45 78 74 72 |.3/2/94.|dgp.Extr|
|000005c0| 61 63 74 65 64 20 49 64 | 65 6e 74 69 66 79 4f 77 |acted Id|entifyOw|
|000005d0| 6e 65 72 20 66 72 6f 6d | 20 77 69 74 68 69 6e 20 |ner from| within |
|000005e0| 49 64 65 6e 74 69 66 79 | 4d 61 63 68 69 6e 65 0d |Identify|Machine.|
|000005f0| 37 2f 32 38 2f 39 34 20 | 64 67 70 20 61 64 64 65 |7/28/94 |dgp adde|
|00000600| 64 20 73 75 70 70 6f 72 | 74 20 66 6f 72 20 4d 65 |d suppor|t for Me|
|00000610| 74 72 6f 77 65 72 6b 73 | 20 43 6f 64 65 57 61 72 |trowerks| CodeWar|
|00000620| 72 69 6f 72 20 43 20 63 | 6f 6d 70 69 6c 65 72 20 |rior C c|ompiler |
|00000630| 61 6e 64 20 50 6f 77 65 | 72 50 43 2e 0d 09 09 09 |and Powe|rPC.....|
|00000640| 45 6c 69 6d 69 6e 61 74 | 65 64 20 75 73 65 20 6f |Eliminat|ed use o|
|00000650| 66 20 22 23 73 22 20 70 | 72 69 6e 74 66 20 66 6f |f "#s" p|rintf fo|
|00000660| 72 6d 61 74 2c 20 73 69 | 6e 63 65 20 69 74 27 73 |rmat, si|nce it's|
|00000670| 20 6e 6f 74 20 73 75 70 | 70 6f 72 74 65 64 20 62 | not sup|ported b|
|00000680| 79 0d 09 09 09 4d 65 74 | 72 6f 77 65 72 6b 73 20 |y....Met|rowerks |
|00000690| 43 6f 64 65 57 61 72 72 | 69 6f 72 20 43 2e 0d 39 |CodeWarr|ior C..9|
|000006a0| 2f 35 2f 39 34 20 64 67 | 70 20 09 72 65 6d 6f 76 |/5/94 dg|p .remov|
|000006b0| 65 64 20 61 73 73 75 6d | 70 74 69 6f 6e 20 69 6e |ed assum|ption in|
|000006c0| 20 70 72 69 6e 74 66 27 | 73 20 74 68 61 74 20 69 | printf'|s that i|
|000006d0| 6e 74 3d 3d 73 68 6f 72 | 74 2e 0d 39 2f 36 2f 39 |nt==shor|t..9/6/9|
|000006e0| 34 09 64 67 70 09 45 6e | 68 61 6e 63 65 64 20 49 |4.dgp.En|hanced I|
|000006f0| 64 65 6e 74 69 66 79 43 | 6f 6d 70 69 6c 65 72 20 |dentifyC|ompiler |
|00000700| 74 6f 20 73 70 65 63 69 | 66 79 20 74 68 65 20 73 |to speci|fy the s|
|00000710| 69 7a 65 20 6f 66 20 69 | 6e 74 2e 0d 39 2f 36 2f |ize of i|nt..9/6/|
|00000720| 39 34 09 64 67 70 09 44 | 69 73 61 62 6c 65 20 63 |94.dgp.D|isable c|
|00000730| 61 63 68 65 20 63 68 65 | 63 6b 73 20 6f 6e 20 50 |ache che|cks on P|
|00000740| 6f 77 65 72 50 43 2c 20 | 62 65 63 61 75 73 65 20 |owerPC, |because |
|00000750| 74 68 6f 73 65 20 74 72 | 61 70 73 20 61 72 65 20 |those tr|aps are |
|00000760| 75 6e 64 65 66 69 6e 65 | 64 2e 0d 31 30 2f 35 2f |undefine|d..10/5/|
|00000770| 39 34 20 64 67 70 20 52 | 65 6d 6f 76 65 64 20 61 |94 dgp R|emoved a|
|00000780| 6c 6c 20 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e |ll float|ing poin|
|00000790| 74 20 63 6f 64 65 20 66 | 72 6f 6d 20 49 64 65 6e |t code f|rom Iden|
|000007a0| 74 69 66 79 43 6f 6d 70 | 69 6c 65 72 28 29 2e 0d |tifyComp|iler()..|
|000007b0| 31 31 2f 35 2f 39 34 20 | 64 67 70 20 53 75 70 70 |11/5/94 |dgp Supp|
|000007c0| 72 65 73 73 65 64 20 52 | 4f 4d 20 69 6e 66 6f 20 |ressed R|OM info |
|000007d0| 69 6e 20 49 64 65 6e 74 | 69 66 79 2e 0d 31 31 2f |in Ident|ify..11/|
|000007e0| 39 2f 39 34 20 64 67 70 | 20 61 64 64 65 64 20 49 |9/94 dgp| added I|
|000007f0| 64 65 6e 74 69 66 79 41 | 70 70 6c 69 63 61 74 69 |dentifyA|pplicati|
|00000800| 6f 6e 28 29 2e 0d 31 2f | 31 35 2f 39 34 20 64 67 |on()..1/|15/94 dg|
|00000810| 70 20 61 64 64 65 64 20 | 74 65 73 74 20 66 6f 72 |p added |test for|
|00000820| 20 76 65 72 73 69 6f 6e | 20 35 20 6f 66 20 43 6f | version| 5 of Co|
|00000830| 64 65 57 61 72 72 69 6f | 72 0d 2a 2f 0d 23 69 6e |deWarrio|r.*/.#in|
|00000840| 63 6c 75 64 65 20 22 56 | 69 64 65 6f 54 6f 6f 6c |clude "V|ideoTool|
|00000850| 62 6f 78 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |box.h".#|include |
|00000860| 3c 54 72 61 70 73 2e 68 | 3e 09 2f 2f 20 5f 48 57 |<Traps.h|>.// _HW|
|00000870| 50 72 69 76 0d 23 69 6e | 63 6c 75 64 65 20 22 6d |Priv.#in|clude "m|
|00000880| 63 36 38 38 38 31 2e 68 | 22 0d 23 69 66 20 55 4e |c68881.h|".#if UN|
|00000890| 49 56 45 52 53 41 4c 5f | 48 45 41 44 45 52 53 0d |IVERSAL_|HEADERS.|
|000008a0| 09 23 69 6e 63 6c 75 64 | 65 20 3c 4c 6f 77 4d 65 |.#includ|e <LowMe|
|000008b0| 6d 2e 68 3e 0d 23 65 6c | 73 65 0d 09 23 64 65 66 |m.h>.#el|se..#def|
|000008c0| 69 6e 65 20 4c 4d 47 65 | 74 43 75 72 41 70 4e 61 |ine LMGe|tCurApNa|
|000008d0| 6d 65 28 29 20 28 28 53 | 74 72 69 6e 67 50 74 72 |me() ((S|tringPtr|
|000008e0| 29 20 30 78 30 39 31 30 | 29 0d 09 23 64 65 66 69 |) 0x0910|)..#defi|
|000008f0| 6e 65 20 67 65 73 74 61 | 6c 74 4e 61 74 69 76 65 |ne gesta|ltNative|
|00000900| 43 50 55 74 79 70 65 20 | 27 63 70 75 74 27 0d 09 |CPUtype |'cput'..|
|00000910| 65 6e 75 6d 7b 0d 09 09 | 67 65 73 74 61 6c 74 43 |enum{...|gestaltC|
|00000920| 50 55 36 30 31 09 09 09 | 09 3d 20 30 78 31 30 31 |PU601...|.= 0x101|
|00000930| 2c 0d 09 09 67 65 73 74 | 61 6c 74 43 50 55 36 30 |,...gest|altCPU60|
|00000940| 33 09 09 09 09 3d 20 30 | 78 31 30 33 2c 0d 09 09 |3....= 0|x103,...|
|00000950| 67 65 73 74 61 6c 74 43 | 50 55 36 30 34 09 09 09 |gestaltC|PU604...|
|00000960| 09 3d 20 30 78 31 30 34 | 0d 09 7d 3b 0d 23 65 6e |.= 0x104|..};.#en|
|00000970| 64 69 66 0d 0d 23 75 6e | 64 65 66 20 5f 5f 43 57 |dif..#un|def __CW|
|00000980| 5f 5f 0d 23 64 65 66 69 | 6e 65 20 5f 5f 43 57 5f |__.#defi|ne __CW_|
|00000990| 5f 20 34 0d 23 69 66 20 | 64 65 66 69 6e 65 64 28 |_ 4.#if |defined(|
|000009a0| 5f 5f 66 6f 75 72 62 79 | 74 65 69 6e 74 73 5f 5f |__fourby|teints__|
|000009b0| 29 09 2f 2f 20 74 68 69 | 73 20 73 79 6d 62 6f 6c |).// thi|s symbol|
|000009c0| 20 66 69 72 73 74 20 61 | 70 70 65 61 72 65 64 20 | first a|ppeared |
|000009d0| 69 6e 20 76 65 72 73 69 | 6f 6e 20 35 2e 30 0d 09 |in versi|on 5.0..|
|000009e0| 23 75 6e 64 65 66 20 5f | 5f 43 57 5f 5f 0d 09 23 |#undef _|_CW__..#|
|000009f0| 64 65 66 69 6e 65 20 5f | 5f 43 57 5f 5f 20 35 0d |define _|_CW__ 5.|
|00000a00| 09 23 69 66 20 21 64 65 | 66 69 6e 65 64 28 70 6f |.#if !de|fined(po|
|00000a10| 77 65 72 63 29 0d 09 09 | 23 69 66 20 5f 5f 6f 70 |werc)...|#if __op|
|00000a20| 74 69 6f 6e 28 49 45 45 | 45 64 6f 75 62 6c 65 73 |tion(IEE|Edoubles|
|00000a30| 29 20 3d 3d 20 5f 5f 69 | 65 65 65 64 6f 75 62 6c |) == __i|eeedoubl|
|00000a40| 65 73 5f 5f 20 20 2f 2f | 20 66 61 6c 73 65 20 69 |es__ //| false i|
|00000a50| 6e 20 43 57 20 35 2e 30 | 20 36 38 6b 20 63 6f 6d |n CW 5.0| 68k com|
|00000a60| 70 69 6c 65 72 0d 09 09 | 09 23 75 6e 64 65 66 20 |piler...|.#undef |
|00000a70| 5f 5f 43 57 5f 5f 0d 09 | 09 09 23 64 65 66 69 6e |__CW__..|..#defin|
|00000a80| 65 20 5f 5f 43 57 5f 5f | 20 35 2e 35 0d 09 09 23 |e __CW__| 5.5...#|
|00000a90| 65 6e 64 69 66 0d 09 09 | 23 70 72 61 67 6d 61 20 |endif...|#pragma |
|00000aa0| 66 6f 75 72 62 79 74 65 | 69 6e 74 73 20 6f 66 66 |fourbyte|ints off|
|00000ab0| 0d 09 09 2f 2f 20 53 75 | 72 70 72 69 73 69 6e 67 |...// Su|rprising|
|00000ac0| 6c 79 2c 20 74 68 65 20 | 43 57 35 2e 35 20 36 38 |ly, the |CW5.5 68|
|00000ad0| 6b 20 63 6f 6d 70 69 6c | 65 72 20 66 61 69 6c 73 |k compil|er fails|
|00000ae0| 20 74 68 69 73 20 74 65 | 73 74 20 4f 4e 4c 59 20 | this te|st ONLY |
|00000af0| 69 66 20 72 75 6e 20 6f | 6e 20 74 68 65 20 50 6f |if run o|n the Po|
|00000b00| 77 65 72 50 43 2e 0d 09 | 09 23 69 66 20 5f 5f 6f |werPC...|.#if __o|
|00000b10| 70 74 69 6f 6e 28 66 6f | 75 72 62 79 74 65 69 6e |ption(fo|urbytein|
|00000b20| 74 73 29 20 3d 3d 20 5f | 5f 66 6f 75 72 62 79 74 |ts) == _|_fourbyt|
|00000b30| 65 69 6e 74 73 5f 5f 20 | 2f 2f 20 66 61 6c 73 65 |eints__ |// false|
|00000b40| 20 69 6e 20 43 57 20 35 | 2e 30 20 61 6e 64 20 35 | in CW 5|.0 and 5|
|00000b50| 2e 35 20 36 38 6b 20 63 | 6f 6d 70 69 6c 65 72 73 |.5 68k c|ompilers|
|00000b60| 0d 09 09 09 23 75 6e 64 | 65 66 20 5f 5f 43 57 5f |....#und|ef __CW_|
|00000b70| 5f 0d 09 09 09 23 64 65 | 66 69 6e 65 20 5f 5f 43 |_....#de|fine __C|
|00000b80| 57 5f 5f 20 36 0d 09 09 | 23 65 6e 64 69 66 0d 09 |W__ 6...|#endif..|
|00000b90| 09 23 70 72 61 67 6d 61 | 20 66 6f 75 72 62 79 74 |.#pragma| fourbyt|
|00000ba0| 65 69 6e 74 73 20 72 65 | 73 65 74 0d 09 23 65 6c |eints re|set..#el|
|00000bb0| 73 65 0d 09 09 2f 2f 20 | 43 61 6e 20 61 6e 79 6f |se...// |Can anyo|
|00000bc0| 6e 65 20 64 65 76 69 73 | 65 20 61 20 74 65 73 74 |ne devis|e a test|
|00000bd0| 20 74 6f 20 64 69 73 74 | 69 6e 67 75 69 73 68 20 | to dist|inguish |
|00000be0| 76 65 72 73 69 6f 6e 20 | 35 2e 35 20 66 72 6f 6d |version |5.5 from|
|00000bf0| 20 35 20 6f 66 20 74 68 | 65 20 70 70 63 20 63 6f | 5 of th|e ppc co|
|00000c00| 6d 70 69 6c 65 72 3f 0d | 09 23 65 6e 64 69 66 0d |mpiler?.|.#endif.|
|00000c10| 23 65 6e 64 69 66 0d 0d | 2f 2a 0d 54 68 69 73 20 |#endif..|/*.This |
|00000c20| 74 61 62 6c 65 20 77 61 | 73 20 63 6f 6d 70 6c 65 |table wa|s comple|
|00000c30| 74 65 20 69 6e 20 73 75 | 6d 6d 65 72 20 27 39 32 |te in su|mmer '92|
|00000c40| 2c 20 62 75 74 20 64 6f | 65 73 20 6e 6f 74 20 69 |, but do|es not i|
|00000c50| 6e 63 6c 75 64 65 20 74 | 68 65 20 6e 65 77 65 72 |nclude t|he newer|
|00000c60| 20 6d 6f 64 65 6c 73 2e | 0d 48 6f 77 65 76 65 72 | models.|.However|
|00000c70| 2c 20 74 68 65 20 74 61 | 62 6c 65 20 69 73 20 75 |, the ta|ble is u|
|00000c80| 73 65 64 20 6f 6e 6c 79 | 20 61 73 20 61 20 62 61 |sed only| as a ba|
|00000c90| 63 6b 75 70 2c 20 77 68 | 65 6e 20 74 68 65 20 53 |ckup, wh|en the S|
|00000ca0| 79 73 74 65 6d 20 6c 61 | 63 6b 73 20 61 20 6d 61 |ystem la|cks a ma|
|00000cb0| 63 68 69 6e 65 20 6e 61 | 6d 65 0d 73 74 72 69 6e |chine na|me.strin|
|00000cc0| 67 2c 20 77 68 69 63 68 | 20 69 73 20 61 20 66 65 |g, which| is a fe|
|00000cd0| 61 74 75 72 65 20 6f 66 | 20 53 79 73 74 65 6d 20 |ature of| System |
|00000ce0| 37 2e 20 53 69 6e 63 65 | 20 61 6c 6c 20 6e 65 77 |7. Since| all new|
|00000cf0| 20 6d 61 63 68 69 6e 65 | 73 20 6e 6f 6d 69 6e 61 | machine|s nomina|
|00000d00| 6c 6c 79 20 72 65 71 75 | 69 72 65 0d 53 79 73 74 |lly requ|ire.Syst|
|00000d10| 65 6d 20 37 2c 20 69 74 | 20 69 73 20 75 6e 6c 69 |em 7, it| is unli|
|00000d20| 6b 65 6c 79 20 74 68 61 | 74 20 69 74 20 77 69 6c |kely tha|t it wil|
|00000d30| 6c 20 65 76 65 72 20 62 | 65 20 6e 65 63 65 73 73 |l ever b|e necess|
|00000d40| 61 72 79 20 74 6f 20 6c | 6f 6f 6b 20 74 68 65 6d |ary to l|ook them|
|00000d50| 20 75 70 20 69 6e 0d 74 | 68 69 73 20 74 61 62 6c | up in.t|his tabl|
|00000d60| 65 2e 0d 2a 2f 0d 63 68 | 61 72 20 6d 61 63 68 69 |e..*/.ch|ar machi|
|00000d70| 6e 65 4e 61 6d 65 5b 5d | 5b 32 30 5d 3d 7b 0d 09 |neName[]|[20]={..|
|00000d80| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 2c 22 4d |"Unknown| Mac","M|
|00000d90| 61 63 20 31 32 38 4b 22 | 2c 22 4d 61 63 20 58 4c |ac 128K"|,"Mac XL|
|00000da0| 22 2c 22 4d 61 63 20 35 | 31 32 4b 45 22 2c 22 4d |","Mac 5|12KE","M|
|00000db0| 61 63 20 50 6c 75 73 22 | 2c 22 4d 61 63 20 53 45 |ac Plus"|,"Mac SE|
|00000dc0| 22 2c 22 4d 61 63 20 49 | 49 22 0d 09 2c 22 4d 61 |","Mac I|I"..,"Ma|
|00000dd0| 63 20 49 49 78 22 2c 22 | 4d 61 63 20 49 49 63 78 |c IIx","|Mac IIcx|
|00000de0| 22 2c 22 4d 61 63 20 53 | 45 2f 33 30 22 2c 22 4d |","Mac S|E/30","M|
|00000df0| 61 63 20 50 6f 72 74 61 | 62 6c 65 22 2c 22 4d 61 |ac Porta|ble","Ma|
|00000e00| 63 20 49 49 63 69 22 2c | 22 55 6e 6b 6e 6f 77 6e |c IIci",|"Unknown|
|00000e10| 20 4d 61 63 22 0d 09 2c | 22 4d 61 63 20 49 49 66 | Mac"..,|"Mac IIf|
|00000e20| 78 22 2c 22 55 6e 6b 6e | 6f 77 6e 20 4d 61 63 22 |x","Unkn|own Mac"|
|00000e30| 2c 22 55 6e 6b 6e 6f 77 | 6e 20 4d 61 63 22 2c 22 |,"Unknow|n Mac","|
|00000e40| 55 6e 6b 6e 6f 77 6e 20 | 4d 61 63 22 0d 09 2c 22 |Unknown |Mac"..,"|
|00000e50| 4d 61 63 20 43 6c 61 73 | 73 69 63 22 2c 22 4d 61 |Mac Clas|sic","Ma|
|00000e60| 63 20 49 49 73 69 22 2c | 22 4d 61 63 20 4c 43 22 |c IIsi",|"Mac LC"|
|00000e70| 2c 22 4d 61 63 20 51 75 | 61 64 72 61 20 39 30 30 |,"Mac Qu|adra 900|
|00000e80| 22 2c 22 50 6f 77 65 72 | 42 6f 6f 6b 20 31 37 30 |","Power|Book 170|
|00000e90| 22 0d 09 2c 22 4d 61 63 | 20 51 75 61 64 72 61 20 |"..,"Mac| Quadra |
|00000ea0| 37 30 30 22 2c 22 4d 61 | 63 20 43 6c 61 73 73 69 |700","Ma|c Classi|
|00000eb0| 63 20 49 49 22 2c 22 50 | 6f 77 65 72 42 6f 6f 6b |c II","P|owerBook|
|00000ec0| 20 31 30 30 22 2c 22 50 | 6f 77 65 72 42 6f 6f 6b | 100","P|owerBook|
|00000ed0| 20 31 34 30 22 2c 22 51 | 75 61 64 72 61 20 39 35 | 140","Q|uadra 95|
|00000ee0| 30 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |0"..,"Un|known Ma|
|00000ef0| 63 22 0d 2f 2f 20 44 65 | 73 70 69 74 65 20 74 68 |c".// De|spite th|
|00000f00| 65 20 61 62 6f 76 65 2c | 20 69 74 20 61 70 70 65 |e above,| it appe|
|00000f10| 61 72 73 20 74 68 61 74 | 20 53 79 73 74 65 6d 20 |ars that| System |
|00000f20| 37 2e 35 20 74 6f 6f 6b | 20 61 20 73 74 65 70 20 |7.5 took| a step |
|00000f30| 62 61 63 6b 77 61 72 64 | 73 20 61 6e 64 20 6c 61 |backward|s and la|
|00000f40| 63 6b 73 0d 2f 2f 20 73 | 70 65 63 69 66 69 63 20 |cks.// s|pecific |
|00000f50| 6e 61 6d 65 73 20 66 6f | 72 20 6d 61 6e 79 20 6d |names fo|r many m|
|00000f60| 61 63 68 69 6e 65 73 2c | 20 73 6f 20 49 27 76 65 |achines,| so I've|
|00000f70| 20 75 73 65 64 20 47 65 | 73 74 61 6c 74 20 53 65 | used Ge|stalt Se|
|00000f80| 6c 65 63 74 6f 72 73 20 | 4c 69 73 74 20 32 2e 38 |lectors |List 2.8|
|00000f90| 20 28 4d 61 72 63 68 20 | 27 39 35 29 0d 2f 2f 20 | (March |'95).// |
|00000fa0| 74 6f 20 75 70 64 61 74 | 65 20 74 68 65 20 6c 69 |to updat|e the li|
|00000fb0| 73 74 20 74 6f 20 69 6e | 63 6c 75 64 65 20 61 6c |st to in|clude al|
|00000fc0| 6c 20 63 75 72 72 65 6e | 74 6c 79 20 61 76 61 69 |l curren|tly avai|
|00000fd0| 6c 61 62 6c 65 20 4d 61 | 63 73 2e 0d 2f 2f 20 48 |lable Ma|cs..// H|
|00000fe0| 6f 77 65 76 65 72 2c 20 | 74 68 65 20 4d 65 74 72 |owever, |the Metr|
|00000ff0| 6f 77 65 72 6b 73 20 43 | 6f 64 65 57 61 72 72 69 |owerks C|odeWarri|
|00001000| 6f 72 20 43 20 35 2e 35 | 20 63 6f 6d 70 69 6c 65 |or C 5.5| compile|
|00001010| 72 20 63 6f 6d 70 6c 61 | 69 6e 73 20 74 68 61 74 |r compla|ins that|
|00001020| 20 49 27 76 65 20 67 6f | 74 0d 2f 2f 20 74 6f 6f | I've go|t.// too|
|00001030| 20 6d 61 6e 79 20 69 6e | 69 74 69 61 6c 69 7a 65 | many in|itialize|
|00001040| 72 73 2c 20 73 6f 20 49 | 27 6d 20 6c 65 61 76 69 |rs, so I|'m leavi|
|00001050| 6e 67 20 74 68 69 73 20 | 61 64 64 69 74 69 6f 6e |ng this |addition|
|00001060| 20 63 6f 6d 6d 65 6e 74 | 65 64 20 6f 75 74 20 66 | comment|ed out f|
|00001070| 6f 72 20 74 68 65 20 74 | 69 6d 65 20 62 65 69 6e |or the t|ime bein|
|00001080| 67 2e 0d 2f 2a 0d 09 2c | 22 4d 61 63 20 4c 43 20 |g../*..,|"Mac LC |
|00001090| 49 49 49 22 0d 09 2c 22 | 55 6e 6b 6e 6f 77 6e 20 |III"..,"|Unknown |
|000010a0| 4d 61 63 22 0d 09 2c 22 | 4d 61 63 20 50 6f 77 65 |Mac"..,"|Mac Powe|
|000010b0| 72 42 6f 6f 6b 20 32 31 | 30 22 0d 09 2c 22 4d 61 |rBook 21|0"..,"Ma|
|000010c0| 63 20 43 65 6e 74 72 69 | 73 20 36 35 30 22 0d 09 |c Centri|s 650"..|
|000010d0| 2c 22 55 6e 6b 6e 6f 77 | 6e 20 4d 61 63 22 0d 09 |,"Unknow|n Mac"..|
|000010e0| 2c 22 4d 61 63 20 50 6f | 77 65 72 42 6f 6f 6b 20 |,"Mac Po|werBook |
|000010f0| 32 33 30 22 0d 09 2c 22 | 4d 61 63 20 50 6f 77 65 |230"..,"|Mac Powe|
|00001100| 72 42 6f 6f 6b 20 31 38 | 30 22 0d 09 2c 22 4d 61 |rBook 18|0"..,"Ma|
|00001110| 63 20 50 6f 77 65 72 42 | 6f 6f 6b 20 31 36 30 22 |c PowerB|ook 160"|
|00001120| 0d 09 2c 22 4d 61 63 20 | 51 75 61 64 72 61 20 38 |..,"Mac |Quadra 8|
|00001130| 30 30 22 0d 09 2c 22 4d | 61 63 20 51 75 61 64 72 |00"..,"M|ac Quadr|
|00001140| 61 20 36 35 30 22 0d 09 | 2c 22 4d 61 63 20 4c 43 |a 650"..|,"Mac LC|
|00001150| 20 49 49 22 0d 09 2c 22 | 4d 61 63 20 50 6f 77 65 | II"..,"|Mac Powe|
|00001160| 72 42 6f 6f 6b 20 44 75 | 6f 20 32 35 30 22 0d 09 |rBook Du|o 250"..|
|00001170| 2c 22 50 6f 77 65 72 20 | 4d 61 63 20 39 31 35 30 |,"Power |Mac 9150|
|00001180| 22 0d 09 2c 22 50 6f 77 | 65 72 20 4d 61 63 20 38 |"..,"Pow|er Mac 8|
|00001190| 31 30 30 2f 31 31 30 22 | 0d 09 2c 22 55 6e 6b 6e |100/110"|..,"Unkn|
|000011a0| 6f 77 6e 20 4d 61 63 22 | 0d 09 2c 22 55 6e 6b 6e |own Mac"|..,"Unkn|
|000011b0| 6f 77 6e 20 4d 61 63 22 | 0d 09 2c 22 55 6e 6b 6e |own Mac"|..,"Unkn|
|000011c0| 6f 77 6e 20 4d 61 63 22 | 0d 09 2c 22 4d 61 63 20 |own Mac"|..,"Mac |
|000011d0| 49 49 76 69 22 0d 09 2c | 22 4d 61 63 20 50 65 72 |IIvi"..,|"Mac Per|
|000011e0| 66 6f 72 6d 61 20 36 30 | 30 22 0d 09 2c 22 55 6e |forma 60|0"..,"Un|
|000011f0| 6b 6e 6f 77 6e 20 4d 61 | 63 22 0d 09 2c 22 50 6f |known Ma|c"..,"Po|
|00001200| 77 65 72 20 4d 61 63 20 | 37 31 30 30 2f 38 30 22 |wer Mac |7100/80"|
|00001210| 0d 09 2c 22 4d 61 63 20 | 49 49 76 78 22 0d 09 2c |..,"Mac |IIvx"..,|
|00001220| 22 4d 61 63 20 43 6f 6c | 6f 72 20 43 6c 61 73 73 |"Mac Col|or Class|
|00001230| 69 63 22 0d 09 2c 22 4d | 61 63 20 50 6f 77 65 72 |ic"..,"M|ac Power|
|00001240| 42 6f 6f 6b 20 31 36 35 | 63 22 0d 09 2c 22 55 6e |Book 165|c"..,"Un|
|00001250| 6b 6e 6f 77 6e 20 4d 61 | 63 22 0d 09 2c 22 4d 61 |known Ma|c"..,"Ma|
|00001260| 63 20 43 65 6e 74 72 69 | 73 20 36 31 30 22 0d 09 |c Centri|s 610"..|
|00001270| 2c 22 4d 61 63 20 51 75 | 61 64 72 61 20 36 31 30 |,"Mac Qu|adra 610|
|00001280| 22 0d 09 2c 22 4d 61 63 | 20 50 6f 77 65 72 42 6f |"..,"Mac| PowerBo|
|00001290| 6f 6b 20 31 34 35 2c 31 | 34 35 62 22 0d 09 2c 22 |ok 145,1|45b"..,"|
|000012a0| 50 6f 77 65 72 20 4d 61 | 63 20 38 31 30 30 2f 31 |Power Ma|c 8100/1|
|000012b0| 30 30 22 0d 09 2c 22 4d | 61 63 20 4c 43 20 35 32 |00"..,"M|ac LC 52|
|000012c0| 30 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |0"..,"Un|known Ma|
|000012d0| 63 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |c"..,"Un|known Ma|
|000012e0| 63 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |c"..,"Un|known Ma|
|000012f0| 63 22 0d 09 2c 22 4d 61 | 63 20 43 65 6e 74 72 69 |c"..,"Ma|c Centri|
|00001300| 73 20 36 36 30 41 56 22 | 0d 09 2c 22 55 6e 6b 6e |s 660AV"|..,"Unkn|
|00001310| 6f 77 6e 20 4d 61 63 22 | 0d 09 2c 22 4d 61 63 20 |own Mac"|..,"Mac |
|00001320| 50 65 72 66 6f 72 6d 61 | 20 34 36 30 22 0d 09 2c |Performa| 460"..,|
|00001330| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|00001340| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|00001350| 22 50 6f 77 65 72 20 4d | 61 63 20 38 31 30 30 2f |"Power M|ac 8100/|
|00001360| 38 30 22 0d 09 2c 22 55 | 6e 6b 6e 6f 77 6e 20 4d |80"..,"U|nknown M|
|00001370| 61 63 22 0d 09 2c 22 55 | 6e 6b 6e 6f 77 6e 20 4d |ac"..,"U|nknown M|
|00001380| 61 63 22 0d 09 2c 22 55 | 6e 6b 6e 6f 77 6e 20 4d |ac"..,"U|nknown M|
|00001390| 61 63 22 0d 09 2c 22 55 | 6e 6b 6e 6f 77 6e 20 4d |ac"..,"U|nknown M|
|000013a0| 61 63 22 0d 09 2c 22 55 | 6e 6b 6e 6f 77 6e 20 4d |ac"..,"U|nknown M|
|000013b0| 61 63 22 0d 09 2c 22 4d | 61 63 20 50 6f 77 65 72 |ac"..,"M|ac Power|
|000013c0| 42 6f 6f 6b 20 31 38 30 | 63 22 0d 09 2c 22 4d 61 |Book 180|c"..,"Ma|
|000013d0| 63 20 50 6f 77 65 72 42 | 6f 6f 6b 20 35 32 30 2c |c PowerB|ook 520,|
|000013e0| 35 32 30 63 2c 35 34 30 | 2c 35 34 30 63 22 0d 09 |520c,540|,540c"..|
|000013f0| 2c 22 55 6e 6b 6e 6f 77 | 6e 20 4d 61 63 22 0d 09 |,"Unknow|n Mac"..|
|00001400| 2c 22 55 6e 6b 6e 6f 77 | 6e 20 4d 61 63 22 0d 09 |,"Unknow|n Mac"..|
|00001410| 2c 22 50 6f 77 65 72 20 | 4d 61 63 20 36 31 30 30 |,"Power |Mac 6100|
|00001420| 2f 36 30 22 0d 09 2c 22 | 55 6e 6b 6e 6f 77 6e 20 |/60"..,"|Unknown |
|00001430| 4d 61 63 22 0d 09 2c 22 | 4d 61 63 20 50 6f 77 65 |Mac"..,"|Mac Powe|
|00001440| 72 42 6f 6f 6b 20 44 75 | 6f 20 32 37 30 63 22 0d |rBook Du|o 270c".|
|00001450| 09 2c 22 4d 61 63 20 51 | 75 61 64 72 61 20 38 34 |.,"Mac Q|uadra 84|
|00001460| 30 41 56 22 0d 09 2c 22 | 55 6e 6b 6e 6f 77 6e 20 |0AV"..,"|Unknown |
|00001470| 4d 61 63 22 0d 09 2c 22 | 4d 61 63 20 4c 43 20 35 |Mac"..,"|Mac LC 5|
|00001480| 35 30 2f 50 65 72 66 6f | 72 6d 61 35 35 30 22 0d |50/Perfo|rma550".|
|00001490| 09 2c 22 55 6e 6b 6e 6f | 77 6e 20 4d 61 63 22 0d |.,"Unkno|wn Mac".|
|000014a0| 09 2c 22 55 6e 6b 6e 6f | 77 6e 20 4d 61 63 22 0d |.,"Unkno|wn Mac".|
|000014b0| 09 2c 22 55 6e 6b 6e 6f | 77 6e 20 4d 61 63 22 0d |.,"Unkno|wn Mac".|
|000014c0| 09 2c 22 4d 61 63 20 50 | 6f 77 65 72 42 6f 6f 6b |.,"Mac P|owerBook|
|000014d0| 20 31 36 35 22 0d 09 2c | 22 55 6e 6b 6e 6f 77 6e | 165"..,|"Unknown|
|000014e0| 20 4d 61 63 22 0d 09 2c | 22 55 6e 6b 6e 6f 77 6e | Mac"..,|"Unknown|
|000014f0| 20 4d 61 63 22 0d 09 2c | 22 55 6e 6b 6e 6f 77 6e | Mac"..,|"Unknown|
|00001500| 20 4d 61 63 22 0d 09 2c | 22 4d 61 63 20 54 56 22 | Mac"..,|"Mac TV"|
|00001510| 0d 09 2c 22 4d 61 63 20 | 4c 43 20 34 37 35 2f 50 |..,"Mac |LC 475/P|
|00001520| 65 72 66 6f 72 6d 61 34 | 37 78 22 0d 09 2c 22 55 |erforma4|7x"..,"U|
|00001530| 6e 6b 6e 6f 77 6e 20 4d | 61 63 22 0d 09 2c 22 55 |nknown M|ac"..,"U|
|00001540| 6e 6b 6e 6f 77 6e 20 4d | 61 63 22 0d 09 2c 22 4d |nknown M|ac"..,"M|
|00001550| 61 63 20 4c 43 20 35 37 | 35 22 0d 09 2c 22 55 6e |ac LC 57|5"..,"Un|
|00001560| 6b 6e 6f 77 6e 20 4d 61 | 63 22 0d 09 2c 22 4d 61 |known Ma|c"..,"Ma|
|00001570| 63 20 51 75 61 64 72 61 | 20 36 30 35 22 0d 09 2c |c Quadra| 605"..,|
|00001580| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|00001590| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|000015a0| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|000015b0| 22 4d 61 63 20 4c 43 20 | 36 33 30 2f 51 75 61 64 |"Mac LC |630/Quad|
|000015c0| 72 61 20 36 33 30 22 0d | 09 2c 22 55 6e 6b 6e 6f |ra 630".|.,"Unkno|
|000015d0| 77 6e 20 4d 61 63 22 0d | 09 2c 22 50 6f 77 65 72 |wn Mac".|.,"Power|
|000015e0| 20 4d 61 63 20 36 31 30 | 30 2f 36 36 22 0d 09 2c | Mac 610|0/66"..,|
|000015f0| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|00001600| 22 4d 61 63 20 50 6f 77 | 65 72 42 6f 6f 6b 20 44 |"Mac Pow|erBook D|
|00001610| 75 6f 20 32 38 30 22 0d | 09 2c 22 4d 61 63 20 50 |uo 280".|.,"Mac P|
|00001620| 6f 77 65 72 42 6f 6f 6b | 20 44 75 6f 20 32 38 30 |owerBook| Duo 280|
|00001630| 63 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |c"..,"Un|known Ma|
|00001640| 63 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |c"..,"Un|known Ma|
|00001650| 63 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |c"..,"Un|known Ma|
|00001660| 63 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |c"..,"Un|known Ma|
|00001670| 63 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |c"..,"Un|known Ma|
|00001680| 63 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |c"..,"Un|known Ma|
|00001690| 63 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |c"..,"Un|known Ma|
|000016a0| 63 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |c"..,"Un|known Ma|
|000016b0| 63 22 0d 09 2c 22 50 6f | 77 65 72 20 4d 61 63 20 |c"..,"Po|wer Mac |
|000016c0| 37 31 30 30 2f 36 36 22 | 0d 09 2c 22 55 6e 6b 6e |7100/66"|..,"Unkn|
|000016d0| 6f 77 6e 20 4d 61 63 22 | 0d 09 2c 22 55 6e 6b 6e |own Mac"|..,"Unkn|
|000016e0| 6f 77 6e 20 4d 61 63 22 | 0d 09 2c 22 4d 61 63 20 |own Mac"|..,"Mac |
|000016f0| 50 6f 77 65 72 42 6f 6f | 6b 20 31 35 30 22 0d 09 |PowerBoo|k 150"..|
|00001700| 2c 22 50 6f 77 65 72 20 | 4d 61 63 69 6e 74 6f 73 |,"Power |Macintos|
|00001710| 68 20 37 30 30 20 28 51 | 37 30 30 20 75 70 67 72 |h 700 (Q|700 upgr|
|00001720| 29 22 0d 09 2c 22 50 6f | 77 65 72 20 4d 61 63 69 |)"..,"Po|wer Maci|
|00001730| 6e 74 6f 73 68 20 39 30 | 30 20 28 51 39 30 30 20 |ntosh 90|0 (Q900 |
|00001740| 75 70 67 72 29 22 0d 09 | 2c 22 50 6f 77 65 72 20 |upgr)"..|,"Power |
|00001750| 4d 61 63 69 6e 74 6f 73 | 68 20 39 35 30 20 28 51 |Macintos|h 950 (Q|
|00001760| 39 35 30 20 75 70 67 72 | 29 22 0d 09 2c 22 50 6f |950 upgr|)"..,"Po|
|00001770| 77 65 72 20 4d 61 63 69 | 6e 74 6f 73 68 20 43 36 |wer Maci|ntosh C6|
|00001780| 31 30 20 28 43 36 31 30 | 20 75 70 67 72 29 22 0d |10 (C610| upgr)".|
|00001790| 09 2c 22 50 6f 77 65 72 | 20 4d 61 63 69 6e 74 6f |.,"Power| Macinto|
|000017a0| 73 68 20 43 36 35 30 20 | 28 43 36 35 30 20 75 70 |sh C650 |(C650 up|
|000017b0| 67 72 29 22 0d 09 2c 22 | 50 6f 77 65 72 20 4d 61 |gr)"..,"|Power Ma|
|000017c0| 63 69 6e 74 6f 73 68 20 | 51 36 31 30 20 28 51 36 |cintosh |Q610 (Q6|
|000017d0| 31 30 20 75 70 67 72 29 | 22 0d 09 2c 22 50 6f 77 |10 upgr)|"..,"Pow|
|000017e0| 65 72 20 4d 61 63 69 6e | 74 6f 73 68 20 51 36 35 |er Macin|tosh Q65|
|000017f0| 30 20 28 51 36 35 30 20 | 75 70 67 72 29 22 0d 09 |0 (Q650 |upgr)"..|
|00001800| 2c 22 50 6f 77 65 72 20 | 4d 61 63 69 6e 74 6f 73 |,"Power |Macintos|
|00001810| 68 20 38 30 30 20 28 51 | 38 30 30 20 75 70 67 72 |h 800 (Q|800 upgr|
|00001820| 29 22 0d 2a 2f 0d 7d 3b | 0d 0d 63 68 61 72 20 66 |)".*/.};|..char f|
|00001830| 70 75 4e 61 6d 65 5b 5d | 5b 33 32 5d 3d 7b 0d 09 |puName[]|[32]={..|
|00001840| 22 6e 6f 20 66 6c 6f 61 | 74 69 6e 67 20 70 6f 69 |"no floa|ting poi|
|00001850| 6e 74 20 75 6e 69 74 22 | 2c 22 36 38 38 38 31 22 |nt unit"|,"68881"|
|00001860| 2c 22 36 38 38 38 32 22 | 2c 22 62 75 69 6c 74 2d |,"68882"|,"built-|
|00001870| 69 6e 20 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e |in float|ing poin|
|00001880| 74 22 0d 09 2c 22 75 6e | 6b 6e 6f 77 6e 20 66 6c |t"..,"un|known fl|
|00001890| 6f 61 74 69 6e 67 20 70 | 6f 69 6e 74 20 75 6e 69 |oating p|oint uni|
|000018a0| 74 22 2c 22 53 6f 66 74 | 77 61 72 65 20 46 50 55 |t","Soft|ware FPU|
|000018b0| 22 0d 7d 3b 0d 0d 63 68 | 61 72 20 2a 49 64 65 6e |".};..ch|ar *Iden|
|000018c0| 74 69 66 79 43 6f 6d 70 | 69 6c 65 72 28 76 6f 69 |tifyComp|iler(voi|
|000018d0| 64 29 0d 7b 0d 09 73 74 | 61 74 69 63 20 63 68 61 |d).{..st|atic cha|
|000018e0| 72 20 73 74 72 69 6e 67 | 5b 32 30 30 5d 3b 0d 09 |r string|[200];..|
|000018f0| 63 68 61 72 20 2a 63 6f | 6d 70 69 6c 65 72 2c 2a |char *co|mpiler,*|
|00001900| 6c 6f 6e 67 73 2c 2a 66 | 6c 6f 61 74 69 6e 67 2c |longs,*f|loating,|
|00001910| 76 65 72 73 69 6f 6e 5b | 34 5d 2c 2a 75 6e 69 76 |version[|4],*univ|
|00001920| 65 72 73 61 6c 3b 0d 09 | 64 6f 75 62 6c 65 20 76 |ersal;..|double v|
|00001930| 3d 30 3b 0d 09 0d 09 73 | 74 72 69 6e 67 5b 30 5d |=0;....s|tring[0]|
|00001940| 3d 30 3b 0d 09 63 6f 6d | 70 69 6c 65 72 3d 22 22 |=0;..com|piler=""|
|00001950| 3b 0d 09 23 69 66 20 54 | 48 49 4e 4b 5f 43 0d 09 |;..#if T|HINK_C..|
|00001960| 09 63 6f 6d 70 69 6c 65 | 72 3d 22 53 79 6d 61 6e |.compile|r="Syman|
|00001970| 74 65 63 20 54 48 49 4e | 4b 20 43 22 3b 0d 09 09 |tec THIN|K C";...|
|00001980| 69 66 28 54 48 49 4e 4b | 5f 43 3d 3d 31 29 76 3d |if(THINK|_C==1)v=|
|00001990| 34 3b 0d 09 09 65 6c 73 | 65 20 76 3d 54 48 49 4e |4;...els|e v=THIN|
|000019a0| 4b 5f 43 3b 0d 09 23 65 | 6e 64 69 66 0d 09 23 69 |K_C;..#e|ndif..#i|
|000019b0| 66 20 54 48 49 4e 4b 5f | 43 50 4c 55 53 0d 09 09 |f THINK_|CPLUS...|
|000019c0| 63 6f 6d 70 69 6c 65 72 | 3d 22 53 79 6d 61 6e 74 |compiler|="Symant|
|000019d0| 65 63 20 43 2b 2b 22 3b | 0d 09 09 76 3d 54 48 49 |ec C++";|...v=THI|
|000019e0| 4e 4b 5f 43 50 4c 55 53 | 3b 0d 09 23 65 6e 64 69 |NK_CPLUS|;..#endi|
|000019f0| 66 0d 09 23 69 66 20 61 | 70 70 6c 65 63 0d 09 09 |f..#if a|pplec...|
|00001a00| 63 6f 6d 70 69 6c 65 72 | 3d 22 4d 50 57 20 43 22 |compiler|="MPW C"|
|00001a10| 3b 0d 09 23 65 6e 64 69 | 66 0d 09 23 69 66 20 5f |;..#endi|f..#if _|
|00001a20| 5f 4d 57 45 52 4b 53 5f | 5f 0d 09 09 63 6f 6d 70 |_MWERKS_|_...comp|
|00001a30| 69 6c 65 72 3d 22 4d 65 | 74 72 6f 77 65 72 6b 73 |iler="Me|trowerks|
|00001a40| 20 43 6f 64 65 57 61 72 | 72 69 6f 72 20 43 22 3b | CodeWar|rior C";|
|00001a50| 0d 09 09 69 66 28 21 69 | 73 63 6e 74 72 6c 28 30 |...if(!i|scntrl(0|
|00001a60| 29 29 76 3d 34 3b 09 2f | 2f 20 62 75 67 20 69 6e |))v=4;./|/ bug in|
|00001a70| 20 76 65 72 73 69 6f 6e | 20 34 2e 35 20 61 6e 64 | version| 4.5 and|
|00001a80| 20 65 61 72 6c 69 65 72 | 0d 09 09 65 6c 73 65 20 | earlier|...else |
|00001a90| 76 3d 35 3b 0d 09 09 2f | 2f 20 76 3d 5f 5f 43 57 |v=5;.../|/ v=__CW|
|00001aa0| 5f 5f 3b 0d 09 23 65 6e | 64 69 66 0d 09 69 66 28 |__;..#en|dif..if(|
|00001ab0| 76 3e 30 29 73 70 72 69 | 6e 74 66 28 76 65 72 73 |v>0)spri|ntf(vers|
|00001ac0| 69 6f 6e 2c 22 25 2e 30 | 66 20 22 2c 76 29 3b 0d |ion,"%.0|f ",v);.|
|00001ad0| 09 65 6c 73 65 20 73 70 | 72 69 6e 74 66 28 76 65 |.else sp|rintf(ve|
|00001ae0| 72 73 69 6f 6e 2c 22 22 | 29 3b 0d 09 69 66 28 6d |rsion,""|);..if(m|
|00001af0| 63 36 38 30 32 30 29 6c | 6f 6e 67 73 3d 22 36 38 |c68020)l|ongs="68|
|00001b00| 30 32 30 22 3b 0d 09 65 | 6c 73 65 7b 0d 09 09 23 |020";..e|lse{...#|
|00001b10| 69 66 20 5f 5f 70 6f 77 | 65 72 63 0d 09 09 09 6c |if __pow|erc....l|
|00001b20| 6f 6e 67 73 3d 22 50 6f | 77 65 72 50 43 22 3b 0d |ongs="Po|werPC";.|
|00001b30| 09 09 23 65 6c 73 65 0d | 09 09 09 6c 6f 6e 67 73 |..#else.|...longs|
|00001b40| 3d 22 36 38 30 30 30 22 | 3b 0d 09 09 23 65 6e 64 |="68000"|;...#end|
|00001b50| 69 66 0d 09 7d 0d 09 69 | 66 28 6d 63 36 38 38 38 |if..}..i|f(mc6888|
|00001b60| 31 29 66 6c 6f 61 74 69 | 6e 67 3d 22 20 61 6e 64 |1)floati|ng=" and|
|00001b70| 20 36 38 38 38 31 22 3b | 0d 09 65 6c 73 65 20 66 | 68881";|..else f|
|00001b80| 6c 6f 61 74 69 6e 67 3d | 22 22 3b 0d 09 75 6e 69 |loating=|"";..uni|
|00001b90| 76 65 72 73 61 6c 3d 22 | 22 3b 0d 09 69 66 28 73 |versal="|";..if(s|
|00001ba0| 69 7a 65 6f 66 28 64 6f | 75 62 6c 65 29 3d 3d 31 |izeof(do|uble)==1|
|00001bb0| 32 29 7b 0d 09 09 23 69 | 66 20 64 65 66 69 6e 65 |2){...#i|f define|
|00001bc0| 64 28 54 48 49 4e 4b 5f | 43 29 0d 09 09 09 23 69 |d(THINK_|C)....#i|
|00001bd0| 66 20 21 5f 5f 6f 70 74 | 69 6f 6e 28 6e 61 74 69 |f !__opt|ion(nati|
|00001be0| 76 65 5f 66 70 29 0d 09 | 09 09 09 75 6e 69 76 65 |ve_fp)..|...unive|
|00001bf0| 72 73 61 6c 3d 22 5c 22 | 75 6e 69 76 65 72 73 61 |rsal="\"|universa|
|00001c00| 6c 5c 22 2d 66 6f 72 6d | 61 74 20 22 3b 0d 09 09 |l\"-form|at ";...|
|00001c10| 09 23 65 6e 64 69 66 0d | 09 09 23 65 6e 64 69 66 |.#endif.|..#endif|
|00001c20| 0d 09 7d 0d 09 73 70 72 | 69 6e 74 66 28 73 74 72 |..}..spr|intf(str|
|00001c30| 69 6e 67 2c 22 43 6f 6d | 70 69 6c 65 64 20 62 79 |ing,"Com|piled by|
|00001c40| 20 25 73 20 25 73 66 6f | 72 20 25 73 25 73 2c 20 | %s %sfo|r %s%s, |
|00001c50| 75 73 69 6e 67 20 25 6c | 64 2d 62 79 74 65 20 69 |using %l|d-byte i|
|00001c60| 6e 74 20 61 6e 64 20 25 | 73 25 6c 64 2d 62 79 74 |nt and %|s%ld-byt|
|00001c70| 65 20 64 6f 75 62 6c 65 | 2e 22 0d 09 09 2c 63 6f |e double|."...,co|
|00001c80| 6d 70 69 6c 65 72 2c 76 | 65 72 73 69 6f 6e 2c 6c |mpiler,v|ersion,l|
|00001c90| 6f 6e 67 73 2c 66 6c 6f | 61 74 69 6e 67 2c 73 69 |ongs,flo|ating,si|
|00001ca0| 7a 65 6f 66 28 69 6e 74 | 29 2c 75 6e 69 76 65 72 |zeof(int|),univer|
|00001cb0| 73 61 6c 2c 73 69 7a 65 | 6f 66 28 64 6f 75 62 6c |sal,size|of(doubl|
|00001cc0| 65 29 29 3b 0d 09 72 65 | 74 75 72 6e 20 73 74 72 |e));..re|turn str|
|00001cd0| 69 6e 67 3b 0d 7d 0d 0d | 63 68 61 72 20 2a 49 64 |ing;.}..|char *Id|
|00001ce0| 65 6e 74 69 66 79 4d 6f | 64 65 6c 28 76 6f 69 64 |entifyMo|del(void|
|00001cf0| 29 0d 7b 0d 09 69 6e 74 | 20 65 72 72 6f 72 3b 0d |).{..int| error;.|
|00001d00| 09 6c 6f 6e 67 20 6d 61 | 63 68 69 6e 65 3b 0d 09 |.long ma|chine;..|
|00001d10| 69 6e 74 20 6d 61 63 68 | 69 6e 65 73 3d 73 69 7a |int mach|ines=siz|
|00001d20| 65 6f 66 28 6d 61 63 68 | 69 6e 65 4e 61 6d 65 29 |eof(mach|ineName)|
|00001d30| 2f 73 69 7a 65 6f 66 28 | 6d 61 63 68 69 6e 65 4e |/sizeof(|machineN|
|00001d40| 61 6d 65 5b 30 5d 29 3b | 0d 09 73 74 61 74 69 63 |ame[0]);|..static|
|00001d50| 20 63 68 61 72 20 73 74 | 72 69 6e 67 5b 33 32 5d | char st|ring[32]|
|00001d60| 3b 0d 0d 09 73 74 72 69 | 6e 67 5b 30 5d 3d 30 3b |;...stri|ng[0]=0;|
|00001d70| 0d 09 65 72 72 6f 72 3d | 47 65 73 74 61 6c 74 28 |..error=|Gestalt(|
|00001d80| 67 65 73 74 61 6c 74 4d | 61 63 68 69 6e 65 54 79 |gestaltM|achineTy|
|00001d90| 70 65 2c 26 6d 61 63 68 | 69 6e 65 29 3b 0d 09 69 |pe,&mach|ine);..i|
|00001da0| 66 28 21 65 72 72 6f 72 | 29 7b 0d 09 09 47 65 74 |f(!error|){...Get|
|00001db0| 49 6e 64 53 74 72 69 6e | 67 28 28 75 6e 73 69 67 |IndStrin|g((unsig|
|00001dc0| 6e 65 64 20 63 68 61 72 | 20 2a 29 73 74 72 69 6e |ned char| *)strin|
|00001dd0| 67 2c 6b 4d 61 63 68 69 | 6e 65 4e 61 6d 65 53 74 |g,kMachi|neNameSt|
|00001de0| 72 49 44 2c 6d 61 63 68 | 69 6e 65 29 3b 0d 09 09 |rID,mach|ine);...|
|00001df0| 70 32 63 73 74 72 28 28 | 75 6e 73 69 67 6e 65 64 |p2cstr((|unsigned|
|00001e00| 20 63 68 61 72 20 2a 29 | 73 74 72 69 6e 67 29 3b | char *)|string);|
|00001e10| 0d 09 09 69 66 28 73 74 | 72 6c 65 6e 28 73 74 72 |...if(st|rlen(str|
|00001e20| 69 6e 67 29 3d 3d 30 29 | 7b 0d 09 09 09 69 66 28 |ing)==0)|{....if(|
|00001e30| 6d 61 63 68 69 6e 65 3c | 30 20 7c 7c 20 6d 61 63 |machine<|0 || mac|
|00001e40| 68 69 6e 65 3e 3d 6d 61 | 63 68 69 6e 65 73 29 6d |hine>=ma|chines)m|
|00001e50| 61 63 68 69 6e 65 3d 30 | 3b 0d 09 09 09 73 70 72 |achine=0|;....spr|
|00001e60| 69 6e 74 66 28 73 74 72 | 69 6e 67 2c 22 25 73 22 |intf(str|ing,"%s"|
|00001e70| 2c 6d 61 63 68 69 6e 65 | 4e 61 6d 65 5b 6d 61 63 |,machine|Name[mac|
|00001e80| 68 69 6e 65 5d 29 3b 0d | 09 09 7d 0d 09 7d 0d 09 |hine]);.|..}..}..|
|00001e90| 72 65 74 75 72 6e 20 73 | 74 72 69 6e 67 3b 0d 7d |return s|tring;.}|
|00001ea0| 0d 0d 63 68 61 72 20 2a | 49 64 65 6e 74 69 66 79 |..char *|Identify|
|00001eb0| 56 69 64 65 6f 28 47 44 | 48 61 6e 64 6c 65 20 64 |Video(GD|Handle d|
|00001ec0| 65 76 69 63 65 29 0d 2f | 2f 20 45 2e 67 2e 20 22 |evice)./|/ E.g. "|
|00001ed0| 50 6f 77 65 72 42 6f 6f | 6b 20 31 37 30 20 d2 4d |PowerBoo|k 170 .M|
|00001ee0| 61 63 69 6e 74 6f 73 68 | 20 44 20 42 75 69 6c 74 |acintosh| D Built|
|00001ef0| 2d 49 6e 20 56 69 64 65 | 6f d3 20 28 2e 44 69 73 |-In Vide|o. (.Dis|
|00001f00| 70 6c 61 79 5f 56 69 64 | 65 6f 5f 41 70 70 6c 65 |play_Vid|eo_Apple|
|00001f10| 5f 54 49 4d 29 22 0d 7b | 0d 09 73 74 61 74 69 63 |_TIM)".{|..static|
|00001f20| 20 63 68 61 72 20 73 74 | 72 69 6e 67 5b 32 35 36 | char st|ring[256|
|00001f30| 5d 3b 0d 09 6c 6f 6e 67 | 20 71 75 69 63 6b 44 72 |];..long| quickDr|
|00001f40| 61 77 3b 0d 0d 09 73 74 | 72 69 6e 67 5b 30 5d 3d |aw;...st|ring[0]=|
|00001f50| 30 3b 0d 09 47 65 73 74 | 61 6c 74 28 67 65 73 74 |0;..Gest|alt(gest|
|00001f60| 61 6c 74 51 75 69 63 6b | 64 72 61 77 56 65 72 73 |altQuick|drawVers|
|00001f70| 69 6f 6e 2c 26 71 75 69 | 63 6b 44 72 61 77 29 3b |ion,&qui|ckDraw);|
|00001f80| 0d 09 69 66 28 71 75 69 | 63 6b 44 72 61 77 3c 67 |..if(qui|ckDraw<g|
|00001f90| 65 73 74 61 6c 74 38 42 | 69 74 51 44 29 7b 0d 09 |estalt8B|itQD){..|
|00001fa0| 09 73 70 72 69 6e 74 66 | 28 73 74 72 69 6e 67 2c |.sprintf|(string,|
|00001fb0| 22 25 73 20 22 2c 49 64 | 65 6e 74 69 66 79 4d 6f |"%s ",Id|entifyMo|
|00001fc0| 64 65 6c 28 29 29 3b 0d | 09 09 73 70 72 69 6e 74 |del());.|..sprint|
|00001fd0| 66 28 73 74 72 69 6e 67 | 2c 22 25 73 d2 25 73 d3 |f(string|,"%s.%s.|
|00001fe0| 22 2c 73 74 72 69 6e 67 | 2c 22 31 2d 62 69 74 20 |",string|,"1-bit |
|00001ff0| 51 75 69 63 6b 44 72 61 | 77 22 29 3b 0d 09 7d 65 |QuickDra|w");..}e|
|00002000| 6c 73 65 7b 0d 09 09 69 | 66 28 47 65 74 44 65 76 |lse{...i|f(GetDev|
|00002010| 69 63 65 53 6c 6f 74 28 | 64 65 76 69 63 65 29 3d |iceSlot(|device)=|
|00002020| 3d 30 29 73 70 72 69 6e | 74 66 28 73 74 72 69 6e |=0)sprin|tf(strin|
|00002030| 67 2c 22 25 73 20 22 2c | 49 64 65 6e 74 69 66 79 |g,"%s ",|Identify|
|00002040| 4d 6f 64 65 6c 28 29 29 | 3b 0d 09 09 73 70 72 69 |Model())|;...spri|
|00002050| 6e 74 66 28 73 74 72 69 | 6e 67 2c 22 25 73 d2 25 |ntf(stri|ng,"%s.%|
|00002060| 73 d3 22 2c 73 74 72 69 | 6e 67 2c 47 44 43 61 72 |s.",stri|ng,GDCar|
|00002070| 64 4e 61 6d 65 28 64 65 | 76 69 63 65 29 29 3b 0d |dName(de|vice));.|
|00002080| 09 09 69 66 28 47 44 56 | 65 72 73 69 6f 6e 28 64 |..if(GDV|ersion(d|
|00002090| 65 76 69 63 65 29 3d 3d | 30 29 73 70 72 69 6e 74 |evice)==|0)sprint|
|000020a0| 66 28 73 74 72 69 6e 67 | 2c 22 25 73 20 28 25 73 |f(string|,"%s (%s|
|000020b0| 29 22 2c 73 74 72 69 6e | 67 2c 47 44 4e 61 6d 65 |)",strin|g,GDName|
|000020c0| 53 74 72 28 64 65 76 69 | 63 65 29 29 3b 0d 09 09 |Str(devi|ce));...|
|000020d0| 65 6c 73 65 20 73 70 72 | 69 6e 74 66 28 73 74 72 |else spr|intf(str|
|000020e0| 69 6e 67 2c 22 25 73 20 | 28 25 73 20 76 65 72 73 |ing,"%s |(%s vers|
|000020f0| 69 6f 6e 20 25 64 29 22 | 0d 09 09 09 2c 73 74 72 |ion %d)"|....,str|
|00002100| 69 6e 67 2c 47 44 4e 61 | 6d 65 53 74 72 28 64 65 |ing,GDNa|meStr(de|
|00002110| 76 69 63 65 29 2c 28 69 | 6e 74 29 47 44 56 65 72 |vice),(i|nt)GDVer|
|00002120| 73 69 6f 6e 28 64 65 76 | 69 63 65 29 29 3b 0d 09 |sion(dev|ice));..|
|00002130| 09 73 70 72 69 6e 74 66 | 28 73 74 72 69 6e 67 2c |.sprintf|(string,|
|00002140| 22 25 73 20 73 6c 6f 74 | 20 25 64 22 2c 73 74 72 |"%s slot| %d",str|
|00002150| 69 6e 67 2c 28 69 6e 74 | 29 47 65 74 44 65 76 69 |ing,(int|)GetDevi|
|00002160| 63 65 53 6c 6f 74 28 64 | 65 76 69 63 65 29 29 3b |ceSlot(d|evice));|
|00002170| 0d 09 7d 0d 09 72 65 74 | 75 72 6e 20 73 74 72 69 |..}..ret|urn stri|
|00002180| 6e 67 3b 0d 7d 0d 0d 63 | 68 61 72 20 2a 49 64 65 |ng;.}..c|har *Ide|
|00002190| 6e 74 69 66 79 4f 77 6e | 65 72 28 76 6f 69 64 29 |ntifyOwn|er(void)|
|000021a0| 0d 7b 0d 09 73 74 61 74 | 69 63 20 63 68 61 72 20 |.{..stat|ic char |
|000021b0| 73 74 72 69 6e 67 5b 36 | 34 5d 3b 0d 09 75 6e 73 |string[6|4];..uns|
|000021c0| 69 67 6e 65 64 20 63 68 | 61 72 20 2a 2a 6f 77 6e |igned ch|ar **own|
|000021d0| 65 72 3b 0d 09 0d 09 73 | 74 72 69 6e 67 5b 30 5d |er;....s|tring[0]|
|000021e0| 3d 30 3b 0d 09 6f 77 6e | 65 72 3d 47 65 74 53 74 |=0;..own|er=GetSt|
|000021f0| 72 69 6e 67 28 2d 31 36 | 30 39 36 29 3b 09 2f 2f |ring(-16|096);.//|
|00002200| 20 47 65 74 20 6f 77 6e | 65 72 27 73 20 6e 61 6d | Get own|er's nam|
|00002210| 65 20 66 72 6f 6d 20 53 | 79 73 74 65 6d 20 66 69 |e from S|ystem fi|
|00002220| 6c 65 0d 09 69 66 28 6f | 77 6e 65 72 21 3d 4e 55 |le..if(o|wner!=NU|
|00002230| 4c 4c 20 26 26 20 2a 6f | 77 6e 65 72 5b 30 5d 3e |LL && *o|wner[0]>|
|00002240| 30 29 7b 0d 09 09 6d 65 | 6d 63 70 79 28 73 74 72 |0){...me|mcpy(str|
|00002250| 69 6e 67 2c 2a 6f 77 6e | 65 72 2c 28 2a 6f 77 6e |ing,*own|er,(*own|
|00002260| 65 72 29 5b 30 5d 2b 31 | 29 3b 0d 09 09 70 32 63 |er)[0]+1|);...p2c|
|00002270| 73 74 72 28 28 75 6e 73 | 69 67 6e 65 64 20 63 68 |str((uns|igned ch|
|00002280| 61 72 20 2a 29 73 74 72 | 69 6e 67 29 3b 0d 09 7d |ar *)str|ing);..}|
|00002290| 0d 09 72 65 74 75 72 6e | 20 73 74 72 69 6e 67 3b |..return| string;|
|000022a0| 0d 7d 0d 0d 63 68 61 72 | 20 2a 49 64 65 6e 74 69 |.}..char| *Identi|
|000022b0| 66 79 41 70 70 6c 69 63 | 61 74 69 6f 6e 28 76 6f |fyApplic|ation(vo|
|000022c0| 69 64 29 09 2f 2f 20 52 | 65 74 75 72 6e 73 20 6e |id).// R|eturns n|
|000022d0| 61 6d 65 20 6f 66 20 61 | 70 70 6c 69 63 61 74 69 |ame of a|pplicati|
|000022e0| 6f 6e 2e 0d 7b 0d 09 73 | 74 61 74 69 63 20 63 68 |on..{..s|tatic ch|
|000022f0| 61 72 20 73 74 72 69 6e | 67 5b 33 32 5d 3b 0d 0d |ar strin|g[32];..|
|00002300| 09 6d 65 6d 63 70 79 28 | 73 74 72 69 6e 67 2c 4c |.memcpy(|string,L|
|00002310| 4d 47 65 74 43 75 72 41 | 70 4e 61 6d 65 28 29 2c |MGetCurA|pName(),|
|00002320| 33 32 29 3b 0d 09 70 32 | 63 73 74 72 28 28 75 6e |32);..p2|cstr((un|
|00002330| 73 69 67 6e 65 64 20 63 | 68 61 72 20 2a 29 73 74 |signed c|har *)st|
|00002340| 72 69 6e 67 29 3b 0d 09 | 72 65 74 75 72 6e 20 73 |ring);..|return s|
|00002350| 74 72 69 6e 67 3b 0d 7d | 0d 0d 63 68 61 72 20 2a |tring;.}|..char *|
|00002360| 49 64 65 6e 74 69 66 79 | 4d 61 63 68 69 6e 65 28 |Identify|Machine(|
|00002370| 76 6f 69 64 29 0d 7b 0d | 09 69 6e 74 20 65 72 72 |void).{.|.int err|
|00002380| 6f 72 3b 0d 09 6c 6f 6e | 67 20 66 70 75 2c 70 72 |or;..lon|g fpu,pr|
|00002390| 6f 63 65 73 73 6f 72 2c | 73 79 73 74 65 6d 2c 76 |ocessor,|system,v|
|000023a0| 61 6c 75 65 3b 0d 09 69 | 6e 74 20 66 70 75 73 3d |alue;..i|nt fpus=|
|000023b0| 73 69 7a 65 6f 66 28 66 | 70 75 4e 61 6d 65 29 2f |sizeof(f|puName)/|
|000023c0| 73 69 7a 65 6f 66 28 66 | 70 75 4e 61 6d 65 5b 30 |sizeof(f|puName[0|
|000023d0| 5d 29 3b 0d 09 73 74 61 | 74 69 63 20 63 68 61 72 |]);..sta|tic char|
|000023e0| 20 73 74 72 69 6e 67 5b | 32 35 36 5d 3b 0d 09 42 | string[|256];..B|
|000023f0| 6f 6f 6c 65 61 6e 20 63 | 61 63 68 65 44 61 74 61 |oolean c|acheData|
|00002400| 3d 31 2c 63 61 63 68 65 | 49 6e 73 74 72 75 63 74 |=1,cache|Instruct|
|00002410| 69 6f 6e 73 3d 31 3b 0d | 09 6c 6f 6e 67 20 72 6f |ions=1;.|.long ro|
|00002420| 6d 53 69 7a 65 2c 72 6f | 6d 56 65 72 73 69 6f 6e |mSize,ro|mVersion|
|00002430| 2c 71 44 3b 0d 09 63 68 | 61 72 20 2a 70 72 6f 63 |,qD;..ch|ar *proc|
|00002440| 65 73 73 6f 72 4e 61 6d | 65 2c 2a 6f 77 6e 65 72 |essorNam|e,*owner|
|00002450| 3b 0d 09 0d 09 73 74 72 | 69 6e 67 5b 30 5d 3d 30 |;....str|ing[0]=0|
|00002460| 3b 0d 09 65 72 72 6f 72 | 3d 47 65 73 74 61 6c 74 |;..error|=Gestalt|
|00002470| 28 67 65 73 74 61 6c 74 | 53 79 73 74 65 6d 56 65 |(gestalt|SystemVe|
|00002480| 72 73 69 6f 6e 2c 26 73 | 79 73 74 65 6d 29 3b 0d |rsion,&s|ystem);.|
|00002490| 09 69 66 28 65 72 72 6f | 72 29 72 65 74 75 72 6e |.if(erro|r)return|
|000024a0| 20 73 74 72 69 6e 67 3b | 09 09 09 09 09 09 2f 2a | string;|....../*|
|000024b0| 20 47 65 73 74 61 6c 74 | 20 6e 6f 74 20 61 76 61 | Gestalt| not ava|
|000024c0| 69 6c 61 62 6c 65 20 2a | 2f 0d 09 65 72 72 6f 72 |ilable *|/..error|
|000024d0| 3d 47 65 73 74 61 6c 74 | 28 67 65 73 74 61 6c 74 |=Gestalt|(gestalt|
|000024e0| 4e 61 74 69 76 65 43 50 | 55 74 79 70 65 2c 26 70 |NativeCP|Utype,&p|
|000024f0| 72 6f 63 65 73 73 6f 72 | 29 3b 0d 09 69 66 28 65 |rocessor|);..if(e|
|00002500| 72 72 6f 72 29 47 65 73 | 74 61 6c 74 28 67 65 73 |rror)Ges|talt(ges|
|00002510| 74 61 6c 74 50 72 6f 63 | 65 73 73 6f 72 54 79 70 |taltProc|essorTyp|
|00002520| 65 2c 26 70 72 6f 63 65 | 73 73 6f 72 29 3b 0d 09 |e,&proce|ssor);..|
|00002530| 47 65 73 74 61 6c 74 28 | 67 65 73 74 61 6c 74 46 |Gestalt(|gestaltF|
|00002540| 50 55 54 79 70 65 2c 26 | 66 70 75 29 3b 0d 09 69 |PUType,&|fpu);..i|
|00002550| 66 28 66 70 75 3c 30 20 | 7c 7c 20 66 70 75 3e 3d |f(fpu<0 ||| fpu>=|
|00002560| 66 70 75 73 29 66 70 75 | 3d 66 70 75 73 2d 32 3b |fpus)fpu|=fpus-2;|
|00002570| 0d 09 69 66 28 66 70 75 | 3d 3d 31 20 26 26 20 47 |..if(fpu|==1 && G|
|00002580| 65 73 74 61 6c 74 28 27 | 46 50 55 45 27 2c 26 76 |estalt('|FPUE',&v|
|00002590| 61 6c 75 65 29 3d 3d 30 | 29 66 70 75 3d 66 70 75 |alue)==0|)fpu=fpu|
|000025a0| 73 2d 31 3b 2f 2f 20 53 | 6f 66 74 77 61 72 65 20 |s-1;// S|oftware |
|000025b0| 46 50 55 20 62 79 20 4a | 6f 68 6e 20 4e 65 69 6c |FPU by J|ohn Neil|
|000025c0| 20 26 20 41 73 73 6f 63 | 2e 0d 09 6f 77 6e 65 72 | & Assoc|...owner|
|000025d0| 3d 49 64 65 6e 74 69 66 | 79 4f 77 6e 65 72 28 29 |=Identif|yOwner()|
|000025e0| 3b 0d 09 69 66 28 73 74 | 72 6c 65 6e 28 6f 77 6e |;..if(st|rlen(own|
|000025f0| 65 72 29 3e 30 29 73 70 | 72 69 6e 74 66 28 73 74 |er)>0)sp|rintf(st|
|00002600| 72 69 6e 67 2c 22 25 73 | d5 73 20 22 2c 6f 77 6e |ring,"%s|.s ",own|
|00002610| 65 72 29 3b 0d 09 73 70 | 72 69 6e 74 66 28 73 74 |er);..sp|rintf(st|
|00002620| 72 69 6e 67 2c 22 25 73 | 25 73 22 2c 73 74 72 69 |ring,"%s|%s",stri|
|00002630| 6e 67 2c 49 64 65 6e 74 | 69 66 79 4d 6f 64 65 6c |ng,Ident|ifyModel|
|00002640| 28 29 29 3b 0d 09 73 77 | 69 74 63 68 28 70 72 6f |());..sw|itch(pro|
|00002650| 63 65 73 73 6f 72 29 7b | 0d 09 09 63 61 73 65 20 |cessor){|...case |
|00002660| 31 3a 20 70 72 6f 63 65 | 73 73 6f 72 4e 61 6d 65 |1: proce|ssorName|
|00002670| 3d 22 36 38 30 30 30 22 | 3b 62 72 65 61 6b 3b 0d |="68000"|;break;.|
|00002680| 09 09 63 61 73 65 20 32 | 3a 20 70 72 6f 63 65 73 |..case 2|: proces|
|00002690| 73 6f 72 4e 61 6d 65 3d | 22 36 38 30 31 30 22 3b |sorName=|"68010";|
|000026a0| 62 72 65 61 6b 3b 0d 09 | 09 63 61 73 65 20 33 3a |break;..|.case 3:|
|000026b0| 20 70 72 6f 63 65 73 73 | 6f 72 4e 61 6d 65 3d 22 | process|orName="|
|000026c0| 36 38 30 32 30 22 3b 62 | 72 65 61 6b 3b 0d 09 09 |68020";b|reak;...|
|000026d0| 63 61 73 65 20 34 3a 20 | 70 72 6f 63 65 73 73 6f |case 4: |processo|
|000026e0| 72 4e 61 6d 65 3d 22 36 | 38 30 33 30 22 3b 62 72 |rName="6|8030";br|
|000026f0| 65 61 6b 3b 0d 09 09 63 | 61 73 65 20 35 3a 20 70 |eak;...c|ase 5: p|
|00002700| 72 6f 63 65 73 73 6f 72 | 4e 61 6d 65 3d 22 36 38 |rocessor|Name="68|
|00002710| 30 34 30 22 3b 62 72 65 | 61 6b 3b 0d 09 09 63 61 |040";bre|ak;...ca|
|00002720| 73 65 20 67 65 73 74 61 | 6c 74 43 50 55 36 30 31 |se gesta|ltCPU601|
|00002730| 3a 20 70 72 6f 63 65 73 | 73 6f 72 4e 61 6d 65 3d |: proces|sorName=|
|00002740| 22 50 50 43 36 30 31 22 | 3b 62 72 65 61 6b 3b 0d |"PPC601"|;break;.|
|00002750| 09 09 63 61 73 65 20 67 | 65 73 74 61 6c 74 43 50 |..case g|estaltCP|
|00002760| 55 36 30 33 3a 20 70 72 | 6f 63 65 73 73 6f 72 4e |U603: pr|ocessorN|
|00002770| 61 6d 65 3d 22 50 50 43 | 36 30 33 22 3b 62 72 65 |ame="PPC|603";bre|
|00002780| 61 6b 3b 0d 09 09 63 61 | 73 65 20 67 65 73 74 61 |ak;...ca|se gesta|
|00002790| 6c 74 43 50 55 36 30 34 | 3a 20 70 72 6f 63 65 73 |ltCPU604|: proces|
|000027a0| 73 6f 72 4e 61 6d 65 3d | 22 50 50 43 36 30 34 22 |sorName=|"PPC604"|
|000027b0| 3b 62 72 65 61 6b 3b 0d | 09 09 64 65 66 61 75 6c |;break;.|..defaul|
|000027c0| 74 3a 20 70 72 6f 63 65 | 73 73 6f 72 4e 61 6d 65 |t: proce|ssorName|
|000027d0| 3d 22 75 6e 6b 6e 6f 77 | 6e 20 70 72 6f 63 65 73 |="unknow|n proces|
|000027e0| 73 6f 72 22 3b 62 72 65 | 61 6b 3b 0d 09 7d 0d 09 |sor";bre|ak;..}..|
|000027f0| 73 70 72 69 6e 74 66 28 | 73 74 72 69 6e 67 2c 22 |sprintf(|string,"|
|00002800| 25 73 20 77 69 74 68 20 | 25 73 20 61 6e 64 20 25 |%s with |%s and %|
|00002810| 73 20 72 75 6e 6e 69 6e | 67 20 53 79 73 74 65 6d |s runnin|g System|
|00002820| 20 25 6c 78 2e 25 6c 78 | 22 0d 09 09 2c 73 74 72 | %lx.%lx|"...,str|
|00002830| 69 6e 67 2c 70 72 6f 63 | 65 73 73 6f 72 4e 61 6d |ing,proc|essorNam|
|00002840| 65 2c 66 70 75 4e 61 6d | 65 5b 66 70 75 5d 2c 73 |e,fpuNam|e[fpu],s|
|00002850| 79 73 74 65 6d 2f 30 78 | 31 30 30 2c 73 79 73 74 |ystem/0x|100,syst|
|00002860| 65 6d 25 30 78 31 30 30 | 2f 30 78 31 30 29 3b 0d |em%0x100|/0x10);.|
|00002870| 09 73 79 73 74 65 6d 25 | 3d 30 78 31 30 3b 0d 09 |.system%|=0x10;..|
|00002880| 69 66 28 73 79 73 74 65 | 6d 29 73 70 72 69 6e 74 |if(syste|m)sprint|
|00002890| 66 28 73 74 72 69 6e 67 | 2c 22 25 73 2e 25 6c 78 |f(string|,"%s.%lx|
|000028a0| 22 2c 73 74 72 69 6e 67 | 2c 73 79 73 74 65 6d 29 |",string|,system)|
|000028b0| 3b 0d 09 73 70 72 69 6e | 74 66 28 73 74 72 69 6e |;..sprin|tf(strin|
|000028c0| 67 2c 22 25 73 2e 22 2c | 73 74 72 69 6e 67 29 3b |g,"%s.",|string);|
|000028d0| 0d 09 47 65 73 74 61 6c | 74 28 67 65 73 74 61 6c |..Gestal|t(gestal|
|000028e0| 74 52 4f 4d 53 69 7a 65 | 2c 26 72 6f 6d 53 69 7a |tROMSize|,&romSiz|
|000028f0| 65 29 3b 0d 09 47 65 73 | 74 61 6c 74 28 67 65 73 |e);..Ges|talt(ges|
|00002900| 74 61 6c 74 52 4f 4d 56 | 65 72 73 69 6f 6e 2c 26 |taltROMV|ersion,&|
|00002910| 72 6f 6d 56 65 72 73 69 | 6f 6e 29 3b 0d 09 2f 2f |romVersi|on);..//|
|00002920| 20 49 27 76 65 20 6e 65 | 76 65 72 20 66 6f 75 6e | I've ne|ver foun|
|00002930| 64 20 61 6e 79 20 75 73 | 65 20 66 6f 72 20 74 68 |d any us|e for th|
|00002940| 65 20 52 4f 4d 20 69 6e | 66 6f 2c 20 73 6f 20 49 |e ROM in|fo, so I|
|00002950| 27 6d 20 73 75 70 70 72 | 65 73 73 69 6e 67 20 69 |'m suppr|essing i|
|00002960| 74 2e 0d 09 69 66 28 30 | 29 73 70 72 69 6e 74 66 |t...if(0|)sprintf|
|00002970| 28 73 74 72 69 6e 67 2c | 22 25 73 2c 20 25 6c 64 |(string,|"%s, %ld|
|00002980| 4b 20 52 4f 4d 20 76 65 | 72 73 69 6f 6e 20 25 6c |K ROM ve|rsion %l|
|00002990| 64 2b 25 6c 64 2a 32 35 | 36 2e 22 0d 09 09 2c 73 |d+%ld*25|6."...,s|
|000029a0| 74 72 69 6e 67 2c 72 6f | 6d 53 69 7a 65 2f 31 30 |tring,ro|mSize/10|
|000029b0| 32 34 2c 72 6f 6d 56 65 | 72 73 69 6f 6e 25 32 35 |24,romVe|rsion%25|
|000029c0| 36 2c 72 6f 6d 56 65 72 | 73 69 6f 6e 2f 32 35 36 |6,romVer|sion/256|
|000029d0| 29 3b 0d 09 69 66 28 54 | 72 61 70 41 76 61 69 6c |);..if(T|rapAvail|
|000029e0| 61 62 6c 65 28 5f 48 57 | 50 72 69 76 29 29 7b 0d |able(_HW|Priv)){.|
|000029f0| 09 09 23 69 66 20 21 5f | 5f 70 6f 77 65 72 63 09 |..#if !_|_powerc.|
|00002a00| 2f 2a 20 61 70 70 61 72 | 65 6e 74 6c 79 20 74 68 |/* appar|ently th|
|00002a10| 65 73 65 20 66 75 6e 63 | 74 69 6f 6e 73 20 64 6f |ese func|tions do|
|00002a20| 6e 27 74 20 77 6f 72 6b | 20 6f 6e 20 50 6f 77 65 |n't work| on Powe|
|00002a30| 72 50 43 20 2a 2f 0d 09 | 09 09 63 61 63 68 65 44 |rPC */..|..cacheD|
|00002a40| 61 74 61 3d 53 77 61 70 | 44 61 74 61 43 61 63 68 |ata=Swap|DataCach|
|00002a50| 65 28 31 29 3b 0d 09 09 | 09 53 77 61 70 44 61 74 |e(1);...|.SwapDat|
|00002a60| 61 43 61 63 68 65 28 63 | 61 63 68 65 44 61 74 61 |aCache(c|acheData|
|00002a70| 29 3b 0d 09 09 09 63 61 | 63 68 65 49 6e 73 74 72 |);....ca|cheInstr|
|00002a80| 75 63 74 69 6f 6e 73 3d | 53 77 61 70 49 6e 73 74 |uctions=|SwapInst|
|00002a90| 72 75 63 74 69 6f 6e 43 | 61 63 68 65 28 31 29 3b |ructionC|ache(1);|
|00002aa0| 0d 09 09 09 53 77 61 70 | 49 6e 73 74 72 75 63 74 |....Swap|Instruct|
|00002ab0| 69 6f 6e 43 61 63 68 65 | 28 63 61 63 68 65 49 6e |ionCache|(cacheIn|
|00002ac0| 73 74 72 75 63 74 69 6f | 6e 73 29 3b 0d 09 09 09 |structio|ns);....|
|00002ad0| 69 66 28 63 61 63 68 65 | 44 61 74 61 20 7c 7c 20 |if(cache|Data || |
|00002ae0| 63 61 63 68 65 49 6e 73 | 74 72 75 63 74 69 6f 6e |cacheIns|truction|
|00002af0| 73 29 73 70 72 69 6e 74 | 66 28 73 74 72 69 6e 67 |s)sprint|f(string|
|00002b00| 2c 22 25 73 20 43 61 63 | 68 69 6e 67 22 2c 73 74 |,"%s Cac|hing",st|
|00002b10| 72 69 6e 67 29 3b 0d 09 | 09 09 65 6c 73 65 20 73 |ring);..|..else s|
|00002b20| 70 72 69 6e 74 66 28 73 | 74 72 69 6e 67 2c 22 25 |printf(s|tring,"%|
|00002b30| 73 20 4e 6f 20 63 61 63 | 68 69 6e 67 22 2c 73 74 |s No cac|hing",st|
|00002b40| 72 69 6e 67 29 3b 0d 09 | 09 09 69 66 28 63 61 63 |ring);..|..if(cac|
|00002b50| 68 65 44 61 74 61 29 73 | 70 72 69 6e 74 66 28 73 |heData)s|printf(s|
|00002b60| 74 72 69 6e 67 2c 22 25 | 73 20 64 61 74 61 22 2c |tring,"%|s data",|
|00002b70| 73 74 72 69 6e 67 29 3b | 0d 09 09 09 69 66 28 63 |string);|....if(c|
|00002b80| 61 63 68 65 44 61 74 61 | 20 26 26 20 63 61 63 68 |acheData| && cach|
|00002b90| 65 49 6e 73 74 72 75 63 | 74 69 6f 6e 73 29 73 70 |eInstruc|tions)sp|
|00002ba0| 72 69 6e 74 66 28 73 74 | 72 69 6e 67 2c 22 25 73 |rintf(st|ring,"%s|
|00002bb0| 20 26 22 2c 73 74 72 69 | 6e 67 29 3b 0d 09 09 09 | &",stri|ng);....|
|00002bc0| 69 66 28 63 61 63 68 65 | 49 6e 73 74 72 75 63 74 |if(cache|Instruct|
|00002bd0| 69 6f 6e 73 29 73 70 72 | 69 6e 74 66 28 73 74 72 |ions)spr|intf(str|
|00002be0| 69 6e 67 2c 22 25 73 20 | 69 6e 73 74 72 75 63 74 |ing,"%s |instruct|
|00002bf0| 69 6f 6e 73 22 2c 73 74 | 72 69 6e 67 29 3b 0d 09 |ions",st|ring);..|
|00002c00| 09 09 73 70 72 69 6e 74 | 66 28 73 74 72 69 6e 67 |..sprint|f(string|
|00002c10| 2c 22 25 73 2e 22 2c 73 | 74 72 69 6e 67 29 3b 0d |,"%s.",s|tring);.|
|00002c20| 09 09 23 65 6e 64 69 66 | 0d 09 7d 0d 09 76 61 6c |..#endif|..}..val|
|00002c30| 75 65 3d 30 3b 0d 09 47 | 65 73 74 61 6c 74 28 67 |ue=0;..G|estalt(g|
|00002c40| 65 73 74 61 6c 74 41 64 | 64 72 65 73 73 69 6e 67 |estaltAd|dressing|
|00002c50| 4d 6f 64 65 41 74 74 72 | 2c 26 76 61 6c 75 65 29 |ModeAttr|,&value)|
|00002c60| 3b 0d 09 69 66 28 76 61 | 6c 75 65 26 31 3c 3c 67 |;..if(va|lue&1<<g|
|00002c70| 65 73 74 61 6c 74 33 32 | 42 69 74 41 64 64 72 65 |estalt32|BitAddre|
|00002c80| 73 73 69 6e 67 29 73 70 | 72 69 6e 74 66 28 73 74 |ssing)sp|rintf(st|
|00002c90| 72 69 6e 67 2c 22 25 73 | 20 33 32 2d 62 69 74 20 |ring,"%s| 32-bit |
|00002ca0| 61 64 64 72 65 73 73 69 | 6e 67 2e 22 2c 73 74 72 |addressi|ng.",str|
|00002cb0| 69 6e 67 29 3b 0d 09 65 | 6c 73 65 20 73 70 72 69 |ing);..e|lse spri|
|00002cc0| 6e 74 66 28 73 74 72 69 | 6e 67 2c 22 25 73 20 32 |ntf(stri|ng,"%s 2|
|00002cd0| 34 2d 62 69 74 20 61 64 | 64 72 65 73 73 69 6e 67 |4-bit ad|dressing|
|00002ce0| 2e 22 2c 73 74 72 69 6e | 67 29 3b 0d 09 47 65 73 |.",strin|g);..Ges|
|00002cf0| 74 61 6c 74 28 67 65 73 | 74 61 6c 74 51 75 69 63 |talt(ges|taltQuic|
|00002d00| 6b 64 72 61 77 56 65 72 | 73 69 6f 6e 2c 26 71 44 |kdrawVer|sion,&qD|
|00002d10| 29 3b 0d 09 73 77 69 74 | 63 68 28 71 44 2f 30 78 |);..swit|ch(qD/0x|
|00002d20| 31 30 30 29 7b 0d 09 09 | 63 61 73 65 20 30 3a 0d |100){...|case 0:.|
|00002d30| 09 09 09 73 70 72 69 6e | 74 66 28 73 74 72 69 6e |...sprin|tf(strin|
|00002d40| 67 2c 22 25 73 20 31 2d | 62 69 74 20 51 75 69 63 |g,"%s 1-|bit Quic|
|00002d50| 6b 44 72 61 77 2e 22 2c | 73 74 72 69 6e 67 29 3b |kDraw.",|string);|
|00002d60| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 63 61 73 |....brea|k;...cas|
|00002d70| 65 20 31 3a 0d 09 09 09 | 73 70 72 69 6e 74 66 28 |e 1:....|sprintf(|
|00002d80| 73 74 72 69 6e 67 2c 22 | 25 73 20 38 2d 62 69 74 |string,"|%s 8-bit|
|00002d90| 20 51 75 69 63 6b 44 72 | 61 77 2e 22 2c 73 74 72 | QuickDr|aw.",str|
|00002da0| 69 6e 67 29 3b 0d 09 09 | 09 62 72 65 61 6b 3b 0d |ing);...|.break;.|
|00002db0| 09 09 63 61 73 65 20 32 | 3a 0d 09 09 09 73 70 72 |..case 2|:....spr|
|00002dc0| 69 6e 74 66 28 73 74 72 | 69 6e 67 2c 22 25 73 20 |intf(str|ing,"%s |
|00002dd0| 33 32 2d 62 69 74 20 51 | 75 69 63 6b 44 72 61 77 |32-bit Q|uickDraw|
|00002de0| 20 31 2e 25 30 32 6c 78 | 2e 22 2c 73 74 72 69 6e | 1.%02lx|.",strin|
|00002df0| 67 2c 71 44 25 30 78 31 | 30 30 29 3b 0d 09 09 09 |g,qD%0x1|00);....|
|00002e00| 62 72 65 61 6b 3b 0d 09 | 09 64 65 66 61 75 6c 74 |break;..|.default|
|00002e10| 3a 0d 09 09 09 73 70 72 | 69 6e 74 66 28 73 74 72 |:....spr|intf(str|
|00002e20| 69 6e 67 2c 22 25 73 20 | 51 75 69 63 6b 44 72 61 |ing,"%s |QuickDra|
|00002e30| 77 20 30 78 25 6c 78 2e | 22 2c 73 74 72 69 6e 67 |w 0x%lx.|",string|
|00002e40| 2c 71 44 29 3b 0d 09 09 | 09 62 72 65 61 6b 3b 0d |,qD);...|.break;.|
|00002e50| 09 7d 0d 09 72 65 74 75 | 72 6e 20 73 74 72 69 6e |.}..retu|rn strin|
|00002e60| 67 3b 0d 7d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |g;.}....|........|
|00002e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e80| 00 00 01 00 00 00 02 4c | 00 00 01 4c 00 00 00 92 |.......L|...L....|
|00002e90| 00 00 00 00 00 11 00 00 | 16 b0 ff ff 00 00 00 00 |........|........|
|00002ea0| 00 11 00 00 16 b6 ff fe | 00 00 00 33 00 11 00 00 |........|...3....|
|00002eb0| 0a 49 64 65 6e 74 69 66 | 79 2e 63 00 02 00 00 00 |.Identif|y.c.....|
|00002ec0| 50 61 72 74 53 49 54 21 | 00 00 00 00 00 00 00 00 |PartSIT!|........|
|00002ed0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 00 00 ab bf ee 61 00 00 | 00 00 00 00 02 de 00 00 |.....a..|........|
|00002f00| 00 11 00 00 19 ae ff fe | 00 00 00 33 00 11 00 00 |........|...3....|
|00002f10| 19 e8 ff ff 00 00 00 00 | 00 11 00 00 19 ee ff fe |........|........|
|00002f20| 00 00 00 33 00 11 00 00 | 19 fa ff ff 00 00 00 00 |...3....|........|
|00002f30| 00 11 00 00 1a 06 ff ff | 00 00 00 00 00 11 00 00 |........|........|
|00002f40| 1a 0e ff ff 00 00 00 00 | 00 11 00 00 1a 14 ff fe |........|........|
|00002f50| 00 00 00 33 00 00 02 a0 | 00 0b 00 00 00 06 ff ff |...3....|........|
|00002f60| 00 00 00 00 00 0b 00 00 | 00 0e ff ff 00 00 00 00 |........|........|
|00002f70| 00 0b 00 00 00 12 ff ff | 00 00 00 00 00 0b 00 00 |........|........|
|00002f80| 00 00 00 2c 00 02 00 12 | 00 00 1d 24 00 ef 00 51 |...,....|...$...Q|
|00002f90| cf 04 00 00 03 71 44 20 | 00 18 00 00 1d 24 00 ef |.....qD |.....$..|
|00002fa0| 00 51 ce f4 00 00 09 71 | 44 2f 30 78 31 30 30 20 |.Q.....q|D/0x100 |
|00002fb0| 00 00 00 0a 00 00 16 1f | 00 bc 00 00 00 00 00 00 |........|........|
|00002fc0| 00 1a 00 01 00 18 00 00 | 15 ee 00 b7 00 46 0a a8 |........|.....F..|
|00002fd0| 00 00 09 70 72 6f 63 65 | 73 73 6f 72 00 00 00 1e |...proce|ssor....|
|00002fe0| 00 55 00 0e 01 8c 02 7c | 00 55 00 0e 01 8c 02 7c |.U.....||.U.....||
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 00 76 00 05 00 00 0b 89 | 00 00 0b 99 11 49 64 65 |.v......|.....Ide|
|00003010| 6e 74 69 66 79 43 6f 6d | 70 69 6c 65 72 00 00 00 |ntifyCom|piler...|
|00003020| 14 ef 00 00 14 fe 0f 49 | 64 65 6e 74 69 66 79 4d |.......I|dentifyM|
|00003030| 61 63 68 69 6e 65 00 00 | 0f 21 00 00 0f 2e 0d 49 |achine..|.!.....I|
|00003040| 64 65 6e 74 69 66 79 4d | 6f 64 65 6c 00 00 13 d2 |dentifyM|odel....|
|00003050| 00 00 13 df 0d 49 64 65 | 6e 74 69 66 79 4f 77 6e |.....Ide|ntifyOwn|
|00003060| 65 72 00 00 10 ed 00 00 | 10 fa 0d 49 64 65 6e 74 |er......|...Ident|
|00003070| 69 66 79 56 69 64 65 6f | 00 00 00 48 00 09 4d 6f |ifyVideo|...H..Mo|
|00003080| 6e 61 63 6f 00 00 00 00 | 00 00 00 00 00 00 00 00 |naco....|........|
|00003090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 03 |........|........|
|000030a0| 00 04 00 50 00 09 01 80 | 02 68 00 50 00 09 01 80 |...P....|.h.P....|
|000030b0| 02 68 ab 9b 31 68 00 00 | 19 9f 00 00 19 a9 00 00 |.h..1h..|........|
|000030c0| 18 df 00 00 00 00 00 04 | 00 01 00 01 00 00 01 00 |........|........|
|000030d0| 00 00 02 4c 00 00 01 4c | 00 00 00 92 00 a8 86 10 |...L...L|........|
|000030e0| 21 6c 00 00 00 1c 00 92 | 00 03 44 54 56 55 00 01 |!l......|..DTVU..|
|000030f0| 00 22 4d 50 53 52 00 02 | 00 3a 42 4b 50 54 00 00 |."MPSR..|.:BKPT..|
|00003100| 00 5e 4d 57 42 42 00 00 | 00 6a 47 37 ff ff 00 00 |.^MWBB..|.jG7....|
|00003110| 00 00 00 00 00 00 27 70 | ff ff 00 00 00 3e 00 00 |......'p|.....>..|
|00003120| 00 00 03 f0 ff ff 00 00 | 00 5c 00 00 00 00 03 ef |........|.\......|
|00003130| ff ff 00 00 00 7e 00 00 | 00 00 03 ed ff ff 00 00 |.....~..|........|
|00003140| 00 f8 00 00 00 00 2c 48 | ff ff 00 00 00 30 00 00 |......,H|.....0..|
|00003150| 00 00 03 f0 ff ff 00 00 | 01 44 00 00 00 00 00 00 |........|.D......|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+